Show More
@@ -9,6 +9,8 b' pub fn get_path_from_bytes(bytes: &[u8])' | |||||
9 | } |
|
9 | } | |
10 | #[cfg(windows)] |
|
10 | #[cfg(windows)] | |
11 | { |
|
11 | { | |
|
12 | // TODO: convert from Windows MBCS (ANSI encoding) to WTF8. | |||
|
13 | // Perhaps, the return type would have to be Result<PathBuf>. | |||
12 | use std::os::windows::ffi::OsStrExt; |
|
14 | use std::os::windows::ffi::OsStrExt; | |
13 | os_str = std::ffi::OsString::from_wide(bytes); |
|
15 | os_str = std::ffi::OsString::from_wide(bytes); | |
14 | } |
|
16 | } |
General Comments 0
You need to be logged in to leave comments.
Login now