[issue4352] imp.find_module() fails with a UnicodeDecodeError when called with non-ASCII search paths

2011-12-09 Thread Serg Asminog
Serg Asminog added the comment: cp1251 -- ___ Python tracker <http://bugs.python.org/issue4352> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4352] imp.find_module() fails with a UnicodeDecodeError when called with non-ASCII search paths

2011-12-09 Thread Serg Asminog
Serg Asminog added the comment: Also Traceback (most recent call last): File "D:\temp\python bug\test.py", line 20, in file_object, file_path, description = imp.find_module(basename, [dirname]) ImportError: No module named mymodule with python 2.6.6 (r266:84297, Aug 24 2010

[issue4352] imp.find_module() fails with a UnicodeDecodeError when called with non-ASCII search paths

2011-12-09 Thread Serg Asminog
Serg Asminog added the comment: print(sys.getfilesystemencoding()) print(os.name) print(sys.version) print(sys.version_info) print(sys.platform) - mbcs nt 3.2.2 (default, Sep 4 2011, 09:07:29) [MSC v.1500 64 bit (AMD64)] sys.version_info(major=3, minor=2, micro=2, releaselevel='

[issue4352] imp.find_module() fails with a UnicodeDecodeError when called with non-ASCII search paths

2011-12-09 Thread Serg Asminog
Serg Asminog added the comment: dirname = 'A-Za-z\xc4\xd6\xdc\xe4\xf6\xfc\xdf' Traceback (most recent call last): File "D:\temp\python bug\test.py", line 19, in file_object, file_path, description = imp.find_module(basename, [dirname]) UnicodeEncodeError: '