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 <rep...@bugs.python.org> <http://bugs.python.org/issue29857> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com