Issue 1070: unicode identifiers in error messages (original) (raw)

When showing a name in a NameError, the encoding is messed up. (File y.py, encoded in UTF-8, contains only only the line shown in the traceback; the terminal encoding is set to UTF-8.)

$ python3k y.py Traceback (most recent call last): File "y.py", line 1, in print(ä) NameError: name 'ᅢᄂ' is not defined