Guido van Rossum <guido@python.org> writes: > But if you pass the normalized string (or the Latin-1 string) to > open(), will it find the file? I.e. if the filesystem has the > unnormalized name stored in its directory, will filesystem requests > normalize filenames before comparing them? > > Jack, can you try to do that? Can you try open('fr\xf6r') in that > directory? If my understanding of OS X is correct, then this won't work: OS X demands UTF-8 for all file names. The interesting question is whether u"fr\xf6r".encode("utf-8") allows one to open the file. If that won't work, it could be considered a bug in OS X, and I trust Apple that they can get such things right (if they had considered them). BTW, the same question holds on Windows: If you create a file on NTFS with \xf6 in it, can you open it by passing \x6f\u0308? I can't try at the moment... Regards, Martin
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4