[Python-Dev] Python-3.0, unicode, and os.environ

Hagen Fürstenau hfuerstenau at gmx.net
Sun Dec 7 10:19:52 CET 2008


> If the Unicode APIs only have correct unicode, sure.  If not you'll
> get errors translating to UTF-8 (and the byte APIs are supposed to
> pass bad names through unaltered.)  Kinda ironic, no?

As far as I can see all Python Unicode strings can be encoded to UTF-8,
even things like lone surrogates because Python doesn't care about them.
So both the Unicode API and the binary API would be fail-safe on Windows.

- Hagen



More information about the Python-Dev mailing list