[issue5422] load pyc file with mbcs file system in update_compiled_module

2009-03-05 Thread
徐洲 added the comment: Oh... yes this is fixed thx a lot for u check out ___ Python tracker <http://bugs.python.org/issue5422> ___ ___ Python-bugs-list mailing list Unsub

[issue5422] load pyc file with mbcs file system in update_compiled_module

2009-03-05 Thread
徐洲 added the comment: if directory have chinese word under windows system load .py is passed load .pyc get the utf-8 codec error... i modified this code wish this is helpful... ___ Python tracker <http://bugs.python.org/issue5

[issue5422] load pyc file with mbcs file system in update_compiled_module

2009-03-05 Thread
New submission from 徐洲 : py3k 3.01 static int update_compiled_module(PyCodeObject *co, char *pathname) { PyObject *oldname, *newname; if (!PyUnicode_CompareWithASCIIString(co->co_filename, pathname)) return 0; /* string pathname related with FILE SYS