Skip to content

Add a new os_str module - #31

Open
tgross35 wants to merge 4 commits into
comex:masterfrom
tgross35:os-str
Open

tgross35 wants to merge 4 commits into
comex:masterfrom
tgross35:os-str

Conversation

@tgross35

Copy link
Copy Markdown

Introduce a new module for working with OsStr. On Unix this is pretty easy, just a wrapper around bytes. On Windows this needs a wrapper around the EncodeWide iterator and some changes to support u16.

@tgross35

tgross35 commented Aug 16, 2026

Copy link
Copy Markdown
Author

Inspired because I needed to split an environment flag and pass the result to Command, both of which use OsStr, but I had no way to make this work on Windows. Tested on a Unix platform and via cargo miri test --target x86_64-pc-windows-msvc for Windows.

Commits are split to make reviewing easier.

Introduce a new module for working with `OsStr`. On Unix this is pretty
easy, just a wrapper around `bytes`. On Windows this needs a wrapper
around the `EncodeWide` iterator and some changes to support `u16`.
@tgross35

Copy link
Copy Markdown
Author

Heya @comex or @fenhl, gentle nudge for review if you're around

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.

1 participant