Issue #6543: Write the traceback in the terminal encoding instead of utf-8.

Fix the encoding of the modules filename.

Reindent also traceback.h, just because I hate tabs :-)
This commit is contained in:
Victor Stinner 2010-06-17 23:08:50 +00:00
parent 870f09a7f4
commit 0fe25a445d
6 changed files with 70 additions and 57 deletions

View file

@ -3942,7 +3942,7 @@ makecode(struct compiler *c, struct assembler *a)
freevars = dict_keys_inorder(c->u->u_freevars, PyTuple_Size(cellvars));
if (!freevars)
goto error;
filename = PyUnicode_DecodeFSDefault(c->c_filename);
filename = PyUnicode_FromString(c->c_filename);
if (!filename)
goto error;