LC_ALL and os.listdir()
"Martin v. Löwis"
martin at v.loewis.de
Wed Feb 23 17:10:29 EST 2005
Serge Orlov wrote:
> Shouldn't os.path.join do that? If you pass a unicode string
> and a byte string it currently tries to convert bytes to characters
> but it makes more sense to convert the unicode string to bytes
> and return two byte strings concatenated.
Sounds reasonable. OTOH, this would be the only (one of a very
few?) occasion where Python combines byte+unicode => byte.
Furthermore, it might be that the conversion of the Unicode
string to a file name fails as well.
That said, I still think it is a good idea, so contributions
are welcome.
Regards,
Martin
More information about the Python-list
mailing list