Re: [Python-Dev] what Windows and Linux really do Re: PEP 383 (again)

2009-04-30 Thread Stephen Hansen
> > You can't even print them without getting an error from Python. In fact, > you also can't print strings containing the proposed half-surrogate > encodings either: in both cases, the output encoder rejects them with a > UnicodeEncodeError. (If not even Python, with its generally lenient > att

Re: [Python-Dev] what Windows and Linux really do Re: PEP 383 (again)

2009-04-30 Thread Antoine Pitrou
Thomas Breuel gmail.com> writes: > > So, I created some ISO8859-15 and ISO8859-8 encoded file names on a device, plugged them into my Windows Vista machine, and fired up Python 3.0.First, os.listdir("f:") returns a list of strings for those file names... but those unicode strings are illegal. So

Re: [Python-Dev] what Windows and Linux really do Re: PEP 383 (again)

2009-04-30 Thread Martin v. Löwis
> There are several different ways I tried it. The easiest was to mount a > vfat file system with various encodings on Linux and use the Python byte > interface to write file names, then plug that flash drive into Windows. So can you share precisely what you have done, to allow others to reproduc

Re: [Python-Dev] what Windows and Linux really do Re: PEP 383 (again)

2009-04-30 Thread Thomas Breuel
On Thu, Apr 30, 2009 at 10:21, "Martin v. Löwis" wrote: > Thomas Breuel wrote: > > Given the stated rationale of PEP 383, I was wondering what Windows > > actually does. So, I created some ISO8859-15 and ISO8859-8 encoded file > > names on a device, plugged them into my Windows Vista machine, an

Re: [Python-Dev] what Windows and Linux really do Re: PEP 383 (again)

2009-04-30 Thread Martin v. Löwis
Thomas Breuel wrote: > Given the stated rationale of PEP 383, I was wondering what Windows > actually does. So, I created some ISO8859-15 and ISO8859-8 encoded file > names on a device, plugged them into my Windows Vista machine, and fired > up Python 3.0. How did you do that, and what were the s

[Python-Dev] what Windows and Linux really do Re: PEP 383 (again)

2009-04-30 Thread Thomas Breuel
Given the stated rationale of PEP 383, I was wondering what Windows actually does. So, I created some ISO8859-15 and ISO8859-8 encoded file names on a device, plugged them into my Windows Vista machine, and fired up Python 3.0. First, os.listdir("f:") returns a list of strings for those file name