[Python-checkins] r82811 - python/branches/import_unicode/Python/compile.c

victor.stinner python-checkins at python.org
Sun Jul 11 12:53:40 CEST 2010


Author: victor.stinner
Date: Sun Jul 11 12:53:40 2010
New Revision: 82811

Log:
makenode() uses PyUnicode_DecodeFSDefault()

Modified:
   python/branches/import_unicode/Python/compile.c

Modified: python/branches/import_unicode/Python/compile.c
==============================================================================
--- python/branches/import_unicode/Python/compile.c	(original)
+++ python/branches/import_unicode/Python/compile.c	Sun Jul 11 12:53:40 2010
@@ -3942,7 +3942,7 @@
     freevars = dict_keys_inorder(c->u->u_freevars, PyTuple_Size(cellvars));
     if (!freevars)
         goto error;
-    filename = PyUnicode_FromString(c->c_filename);
+    filename = PyUnicode_DecodeFSDefault(c->c_filename);
     if (!filename)
         goto error;
 


More information about the Python-checkins mailing list