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")