[issue6815] UnicodeDecodeError in os.path.expandvars

Martin v. Löwis report at bugs.python.org
Sat Mar 6 19:12:54 CET 2010


Martin v. Löwis <martin at v.loewis.de> added the comment:

I think the patch is incorrect. It shouldn't do any encoding conversion, but perform the expanding completely in Unicode strings.

For 2.x, I recommend to close this as "won't fix". Expanding a Unicode strings is just not supported. If it was supported, it should be supported correctly, i.e. allowing both environment variable names and environment variable values to have non-ASCII characters in them, and, on Windows, even non-MBCS characters.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6815>
_______________________________________


More information about the Python-bugs-list mailing list