[issue7697] os.getcwd() should raise UnicodeDecodeError for arbitrary bytes
Philip Jenvey
report at bugs.python.org
Wed Jan 13 23:46:27 CET 2010
Philip Jenvey <pjenvey at underboss.org> added the comment:
Right, this is an intentional change in behavior in Python 3.1, non-decodable characters are now decoded to utf8b (via the surrogateescape error handler). The unicode string returned from getcwd furthermore can be passsed around to other fs functions, they simply encode back to the original bytes via surrogateescape on POSIX
See PEP 383
----------
nosy: +pjenvey
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7697>
_______________________________________
More information about the Python-bugs-list
mailing list