diff --git a/rust/hg-core/src/utils/files.rs b/rust/hg-core/src/utils/files.rs --- a/rust/hg-core/src/utils/files.rs +++ b/rust/hg-core/src/utils/files.rs @@ -9,6 +9,8 @@ pub fn get_path_from_bytes(bytes: &[u8]) } #[cfg(windows)] { + // TODO: convert from Windows MBCS (ANSI encoding) to WTF8. + // Perhaps, the return type would have to be Result. use std::os::windows::ffi::OsStrExt; os_str = std::ffi::OsString::from_wide(bytes); }