[Python-checkins] r85553 - python/branches/py3k/Python/import.c
victor.stinner
python-checkins at python.org
Sat Oct 16 00:46:07 CEST 2010
Author: victor.stinner
Date: Sat Oct 16 00:46:07 2010
New Revision: 85553
Log:
Fix imp_cache_from_source(): Decode make_compiled_pathname() result from the
filesystem encoding instead of utf-8.
imp_cache_from_source() encodes the input path to filesystem encoding and this
path is passed to make_compiled_pathname().
Modified:
python/branches/py3k/Python/import.c
Modified: python/branches/py3k/Python/import.c
==============================================================================
--- python/branches/py3k/Python/import.c (original)
+++ python/branches/py3k/Python/import.c Sat Oct 16 00:46:07 2010
@@ -3483,7 +3483,7 @@
PyErr_Format(PyExc_SystemError, "path buffer too short");
return NULL;
}
- return PyUnicode_FromString(buf);
+ return PyUnicode_DecodeFSDefault(buf);
}
PyDoc_STRVAR(doc_cache_from_source,
More information about the Python-checkins
mailing list