-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I see that these conversions are only available on Unix via #[cfg(unix)]: https://github.com/allenap/shell-quote/blob/master/src/lib.rs#L179 And I'm assuming that this is because it uses OsStrExt, but in practice, this makes interoperable code very awkward to work with.
On Unix I can use things "as-is" but on Windows, I always have to convert everything to a String (or equivalent), which is a lot of overhead.
Is there a reason that as_encoded_bytes() isn't used here? https://doc.rust-lang.org/std/ffi/struct.OsString.html#method.as_encoded_bytes Is it because of the note/caveats?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request