Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement NixPath for str and OsStr #250

Merged
merged 1 commit into from
Jan 28, 2016

Conversation

kamalmarhubi
Copy link
Member

This is a stop gap improvement until the NixPath reform is figured out.

refs #221

@kamalmarhubi
Copy link
Member Author

@arcnmx any thoughts?

I realized on the way to this that we're currently doing a terrible job of interior NULs. There's nothing new on that front in this PR, as you can have interior NULs in a Path as easily as you can in a str.

@arcnmx
Copy link
Contributor

arcnmx commented Jan 27, 2016

Seems fine to me!

Interior nuls should probably trigger invalidpath errors, just like they do in libstd. This is ignored for all types, so yeah, this PR doesn't change the status quo. It's something to do as part of the NixString reform for sure.

This is a stop gap improvement until the NixPath reform is figured out.

refs nix-rust#221
@kamalmarhubi
Copy link
Member Author

Great, rebased, waiting for CI then will merge.

@kamalmarhubi kamalmarhubi merged commit 9f7c9fb into nix-rust:master Jan 28, 2016
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