Mark Dickinson <dicki...@gmail.com> added the comment: Even better:
>>> for s in map(unicodedata.name, found): print(s) ... LATIN SMALL LETTER F LATIN SMALL LETTER O LATIN SMALL LETTER O LATIN SMALL LETTER O COMBINING DIAERESIS LATIN SMALL LETTER B LATIN SMALL LETTER A LATIN SMALL LETTER R >>> for s in map(unicodedata.name, expected): print(s) ... LATIN SMALL LETTER F LATIN SMALL LETTER O LATIN SMALL LETTER O LATIN SMALL LETTER O WITH DIAERESIS LATIN SMALL LETTER B LATIN SMALL LETTER A LATIN SMALL LETTER R >>> found == expected False >>> unicodedata.normalize('NFC', found) == unicodedata.normalize('NFC', expected) True So there are two separate issues, both of which just require fixing the tests: one issue is that OS X transforms invalid filenames; the other is that it normalizes valid filenames. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5944> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com