[Python-Dev] PEP 277 (unicode filenames): please review
Martin v. Loewis
13 Aug 2002 21:49:33 +0200
Guido van Rossum <firstname.lastname@example.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
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