Philip Jenvey <pjen...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue7697> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com