You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If it's possible to fix this up without breakage then we'd happily accept a patch to support non-UTF8 args. Otherwise I think we'll probably have to accept the UTF8 requirement as a limitation of getopts.
It might be possible but the field Matches::free has type Vec<String> so any additional path argument can't be collected into it without being valid UTF8. It would be necessary to add an additional field with type Vec<OsString> to avoid interface breakage, this is possible as there are private fields, and some opt-in method to populate the field instead of free.
I can provide a patch but want to know if this direction might be potentially accepted before working on it.
See samuela/rustybox#32 (comment). This has been a factor in https://github.com/uutils/coreutils migrating from getopts to clap.
The text was updated successfully, but these errors were encountered: