Message87275
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. |
|
Date |
User |
Action |
Args |
2009-05-05 19:42:07 | mark.dickinson | set | recipients:
+ mark.dickinson, loewis, r.david.murray |
2009-05-05 19:42:07 | mark.dickinson | set | messageid: <1241552527.49.0.210408352226.issue5944@psf.upfronthosting.co.za> |
2009-05-05 19:42:05 | mark.dickinson | link | issue5944 messages |
2009-05-05 19:42:05 | mark.dickinson | create | |
|