[Python-Dev] Support of UTF-16 and UTF-32 source encodings (original) (raw)

eryksun eryksun at gmail.com
Sat Nov 14 21:59:01 EST 2015


On Sat, Nov 14, 2015 at 7:15 PM, Chris Angelico <rosuav at gmail.com> wrote:

Can the py.exe launcher handle a UTF-16 shebang? (I'm pretty sure Unix program loaders won't.) That alone might be a reason for strongly encouraging ASCII-compat encodings.

The launcher supports shebangs encoded as UTF-8 (default), UTF-16 (LE/BE), and UTF-32 (LE/BE):

https://hg.python.org/cpython/file/v3.5.0/PC/launcher.c#l1138



More information about the Python-Dev mailing list