argi icon indicating copy to clipboard operation
argi copied to clipboard

Does it handle non-UTF8 filenames on Unix-like systems?

Open vi opened this issue 4 years ago • 2 comments

Can it be used, for example, to pass entire command line array to a subprocess unmodified without restrictions, like xargs? Does it start from std::env::args (simpler, but makes this task impossible) or from std::env::args_os (proper way, but tricky)?

vi avatar Oct 13 '21 14:10 vi

Currently the launch method uses std::env::args but i will consider transitioning into args_os as nothing too complex is done to strings other than strip_prefix

Owez avatar Oct 13 '21 21:10 Owez

nothing too complex is done to strings other than strip_prefix

It can still be somewhat tricky. You may want to review lexopt for how it's done.

vi avatar Oct 14 '21 08:10 vi