by account42 · 7y ago · 0 comments
So how does rust deal with filenames under Linux? Use somethinge other than strings?
[1] https://doc.rust-lang.org/std/path/struct.PathBuf.html
[2] https://doc.rust-lang.org/std/path/struct.PathBuf.html#metho...
[3] https://doc.rust-lang.org/std/path/struct.PathBuf.html#metho...
This is also used to deal with filenames on Windows, as they're a different flavour of "not unicode", IIRC that's the original use case for WTF8.
It also has a separate pseudo-string type to deal with C strings: https://doc.rust-lang.org/std/ffi/struct.CString.html