SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 0 Python

#4747: on Windows, starting a module with a non-ascii filename would print a useless "SyntaxError: None"

when the script contains a "# coding:" declaration.

The Python API expects char* to be utf-8 encoded. wcstombs should be avoided here.

Reviewed by Benjamin. Will backport to 3.0
A
Amaury Forgeot d'Arc committed
374e220bcb1ee71053c18c0b4e409cfa69881722
Parent: 8ed9a80