Author: victor.stinner Date: Wed Jul 14 22:38:12 2010 New Revision: 82901 Log: PyRun_SimpleFileExFlags() uses PyUnicode_DecodeFSDefault() Modified: python/branches/import_unicode/Python/pythonrun.c Modified: python/branches/import_unicode/Python/pythonrun.c ============================================================================== --- python/branches/import_unicode/Python/pythonrun.c (original) +++ python/branches/import_unicode/Python/pythonrun.c Wed Jul 14 22:38:12 2010 @@ -1332,7 +1332,7 @@ d = PyModule_GetDict(m); if (PyDict_GetItemString(d, "__file__") == NULL) { PyObject *f; - f = PyUnicode_FromString(filename); + f = PyUnicode_DecodeFSDefault(filename); if (f == NULL) return -1; if (PyDict_SetItemString(d, "__file__", f) < 0) {
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4