[issue29857] Provide `sys._raw_argv` for host application's command line arguments

Nick Coghlan report at bugs.python.org
Tue Mar 21 01:14:28 EDT 2017


Nick Coghlan added the comment:

For CPython, I was thinking of having it be "whatever gets passed to Py_Main", and that accepts wchar_t in Py3 [1], so on *Nix systems, the command line has already been decoded with [2] by the time it runs.

[1] https://docs.python.org/3/c-api/veryhigh.html#c.Py_Main
[2] https://docs.python.org/3/c-api/sys.html#c.Py_DecodeLocale

In the case of Windows, the wchar_t array is received straight from the OS as UTF-16-LE.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29857>
_______________________________________


More information about the Python-bugs-list mailing list