[issue8133] test_imp fails on OS X 10.6; filename normalization issue.

Brett Cannon report at bugs.python.org
Tue Mar 16 21:21:53 CET 2010


Brett Cannon <brett at python.org> added the comment:

Trying to get this right is nasty as mixed filesystem stuff is always tricky, especially since NFD is still UTF-8 as is NFC so sys.getdefaultencoding() doesn't help.

Without some way to get that extra bit of info about what form of UTF-8 encoding is being used for the filesystem, I think the test should be modified to use os.listdir() to find the name as encoded by the filesystem and use that as the argument to imp.find_module() instead of assuming the filesystem didn't tweak what it was given.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8133>
_______________________________________


More information about the Python-bugs-list mailing list