diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-06-17 23:08:50 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-06-17 23:08:50 (GMT) |
commit | 0fe25a445d5e72450a8d611faed75f65ba57c0bc (patch) | |
tree | bb0225a38220360cb4ae5451b68d2c954bf3525d /Python/compile.c | |
parent | 870f09a7f4296712de404dccea1c3a7bf52f66c3 (diff) | |
download | cpython-0fe25a445d5e72450a8d611faed75f65ba57c0bc.zip cpython-0fe25a445d5e72450a8d611faed75f65ba57c0bc.tar.gz cpython-0fe25a445d5e72450a8d611faed75f65ba57c0bc.tar.bz2 |
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 :-)
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index fa7dcef..c9f6e8d 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -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; |