This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients belopolsky, loewis, vstinner
Date 2011-01-21.00:02:06
SpamBayes Score 5.7104392e-09
Marked as misclassified No
Message-id <4D38CCFA.9060903@v.loewis.de>
In-reply-to <AANLkTi=Q5ZK4iG2nMgic50fMLCqWDEiDVQgKTripr+bX@mail.gmail.com>
Content
> There is also issue c) what if the filesystem encoding can only
> represent a compatibility character, say U+00B5, but not its NFKC
> equivalent, U+03BC?

That should be considered as similar to file systems that just cannot
represent certain characters at all - e.g. many of the non-ASCII
characters, or no upper-case letters. If you have such a file system,
you just cannot use these characters in a module name. Rename your
modules, then, or put the modules in a zipfile (or use some other
import hook).

> However, this code will always fail because '\xB5Torrent' will be
> normalized into '\u03BCTorrent' and a file named '\u03BCTorrent.py'
> cannot be created on a filesystem with Latin-1 encoding.

Tough luck. The filesystem just doesn't support GREEK SMALL LETTER MU,
just as it doesn't support all the other greek characters.

It may be fun coming up with these border cases. But I really don't
see a need to support them. If you really need to have that letter
in a module name, reformat your disk with a better file system.
History
Date User Action Args
2011-01-21 00:02:09loewissetrecipients: + loewis, belopolsky, vstinner
2011-01-21 00:02:06loewislinkissue10952 messages
2011-01-21 00:02:06loewiscreate