From f340b2914dc9c3a94ca8606f4663964fa87b95ea Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Fri, 10 Jul 2020 12:07:48 -0300 Subject: [PATCH] fix(tauri) addition to the previous commit --- .changes/loopback-fix.md | 6 ++++++ tauri/src/app/runner.rs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changes/loopback-fix.md diff --git a/.changes/loopback-fix.md b/.changes/loopback-fix.md new file mode 100644 index 000000000..4944a595d --- /dev/null +++ b/.changes/loopback-fix.md @@ -0,0 +1,6 @@ +--- +"tauri-bundler": patch +"tauri": patch +--- + +Ignoring non UTF-8 characters on the loopback command output. diff --git a/tauri/src/app/runner.rs b/tauri/src/app/runner.rs index e7c3f7b9a..94d72fac5 100644 --- a/tauri/src/app/runner.rs +++ b/tauri/src/app/runner.rs @@ -75,7 +75,7 @@ fn setup_content() -> crate::Result> { panic!("Failed to execute CheckNetIsolation LoopbackExempt -s"); } - let output_str = String::from_utf8(exempt_output.stdout)?.to_lowercase(); + let output_str = String::from_utf8_lossy(exempt_output.stdout).to_lowercase(); if !output_str.contains("win32webviewhost_cw5n1h2txyewy") { println!("Running Loopback command"); runas::Command::new("powershell")