[Python-checkins] r83243 - python/branches/import_unicode/Python/errors.c
victor.stinner
python-checkins at python.org
Fri Jul 30 00:51:20 CEST 2010
Author: victor.stinner
Date: Fri Jul 30 00:51:19 2010
New Revision: 83243
Log:
PyErr_SyntaxLocation() uses PyUnicode_DecodeFSDefault()
to decode the filename
Modified:
python/branches/import_unicode/Python/errors.c
Modified: python/branches/import_unicode/Python/errors.c
==============================================================================
--- python/branches/import_unicode/Python/errors.c (original)
+++ python/branches/import_unicode/Python/errors.c Fri Jul 30 00:51:19 2010
@@ -803,7 +803,7 @@
Py_DECREF(tmp);
}
if (filename != NULL) {
- tmp = PyUnicode_FromString(filename);
+ tmp = PyUnicode_DecodeFSDefault(filename);
if (tmp == NULL)
PyErr_Clear();
else {
More information about the Python-checkins
mailing list