How convert OsString to Vec on Windows? (and probably back)
⚓ Rust 📅 2026-05-31 👤 surdeus 👁️ 3Why do I need that? Windows file system isn't case sensitive (ASCII subset), so files MyFile, MYFILE, myfile,... actually are the same file. I can convert everything in UPPER and then do most of file operations there. However, when I try share such files over github to Linux and other systems, I may need to recover an original case of letters. Therefore using Vec over String is preferable on Windows systems, at least how I see that. Any better ideas are welcome. Remember, I do no use crates.io, so any solutions like - just add widechar crate, won't work for me.
2 posts - 2 participants
🏷️ Rust_feed