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

os::args() should return ~[~[u8]] instead of ~[~str] #11476

Closed
bill-myers opened this issue Jan 11, 2014 · 1 comment
Closed

os::args() should return ~[~[u8]] instead of ~[~str] #11476

bill-myers opened this issue Jan 11, 2014 · 1 comment

Comments

@bill-myers
Copy link
Contributor

On Linux, command line arguments are not guaranteed to be UTF-8.

In particular, they can be pathnames, which can be encoded in any character set (that is why Path uses ~[u8] now).

So, os::args() is wrong and should return [[u8]] instead of ~[~str].

@huonw
Copy link
Member

huonw commented Jan 11, 2014

Dupe of #7188.

@huonw huonw closed this as completed Jan 11, 2014
flip1995 pushed a commit to flip1995/rust that referenced this issue Sep 5, 2024
new lint: `zombie_processes`

Closes rust-lang#10754

Lint description should explain this PR, so I think there's nothing else to say here ^^

changelog: new lint: [`zombie_processes`]
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

No branches or pull requests

2 participants