[Python-3000] [Python-Dev] Filename as byte string in python 2.6 or 3.0?

Antoine Pitrou solipsis at pitrou.net
Wed Oct 1 12:26:20 CEST 2008


Greg Ewing <greg.ewing <at> canterbury.ac.nz> writes:
> 
> Seems like what will fail is taking one of these utf-8b
> decoded names and passing it to some external library
> that uses it as a filename without knowing that it has
> to use utf-8b to encode it. Then the funny characters
> won't be encoded the way they were originally,

But those funny characters only appear for invalid filenames. Passing filenames
to a library will work for valid filenames. Sure, not all the problem is solved,
but the most important part of it (have all filenames work with Python's IO
functions) is.





More information about the Python-3000 mailing list