Skip to content

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

Closed
@bill-myers

Description

@bill-myers

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].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions