[issue4006] os.getenv silently discards env variables with non-UTF-8 values

STINNER Victor report at bugs.python.org
Fri Oct 3 00:00:01 CEST 2008


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

@a.badger: Again, dropping invalid filenames in listdir() is a (very 
recent) choice of the Python3 design. Please read this document which 
explain the current situation of bytes vs unicode:
   http://wiki.python.org/moin/Python3UnicodeDecodeError

See also issue3187 and read the long python-dev mailing list thread 
about filenames (start few days ago).

Guido just commited my huge patch to support bytes filename in Python3 
trunk. So using Python3 final, you will be abl to list all files using 
os.listdir(b'.') or os.listdir(os.getcwdb()).

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


More information about the Python-bugs-list mailing list