[Python-Dev] test_unicode_file.py

Guido van Rossum guido@python.org
Tue, 15 Jan 2002 16:21:04 -0500


> Until PEP 277 is approved, the tests that Mark recently added is
> bogus: The return value of os.listdir is (currently) a list of byte
> strings, and you cannot (portably) compare those to a Unicode string
> if the byte strings contain non-ASCII characters.
> 
> I'm surprised the test passed for Mark; he either has Neil's patches
> installed, or has set the default encoding to "mbcs" on his system.
> 
> I recommend to apply the attached patch.

Thanks.  Done.

--Guido van Rossum (home page: http://www.python.org/~guido/)