diff --git a/src-tauri/src/media_info.rs b/src-tauri/src/media_info.rs index 3103ab1..2d0fde8 100644 --- a/src-tauri/src/media_info.rs +++ b/src-tauri/src/media_info.rs @@ -62,11 +62,11 @@ extern "C" { fn to_wchars(s: &str) -> Vec { let wchars = WideCString::from_str_truncate(s).into_vec(); - #[cfg(target_os = "windows")] + #[cfg(not(target_os = "macos"))] { wchars } - #[cfg(not(target_os = "windows"))] + #[cfg(target_os = "macos")] if wchars.len() > 0 && wchars.iter().any(|&c| c >= 0x100) { encoding::all::UTF_8 .encode(s, encoding::EncoderTrap::Strict)