Skip to content

Conversation

@allenap
Copy link
Owner

@allenap allenap commented Oct 20, 2025

This should allow for better cross-platform support, esp. for Windows.

@allenap allenap force-pushed the as-encoded-bytes branch 3 times, most recently from 9ff4bea to 57f401f Compare October 20, 2025 14:40
i.e. `OsString::from_encoded_bytes_unchecked` too, where it's safe.
`OsStr`/`OsString` are always encoded as a superset of UTF-8, on all platforms.
For shells where we can guarantee UTF-8 output, i.e. `bash`/`zsh` and `fish`, we
can use these cross-platform methods. For `sh`, where we cannot guarantee UTF-8,
then `OsStr`/`OsString` is only available on Unix platforms.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants