David-Sarah Hopwood <david-sa...@jacaranda.org> added the comment: This problem causes {{{os.getcwdu()}}} to fail when the console code page is set to 65001 (always, I think): {{{ t:\>ver
Microsoft Windows [Version 6.0.6002] t:\>chcp Active code page: 65001 t:\>python -c "import os; print os.getcwdu()" Traceback (most recent call last): File "<string>", line 1, in <module> LookupError: unknown encoding: cp65001 t:\>chcp 1252 Active code page: 1252 t:\>python -c "import os; print os.getcwdu()" t:\ }}} Incidentally, I don't agree that this codepage needs to be distinguished from UTF-8. The deviations in the Microsoft codec are just their bugs. There is only one correct way to encode/decode UTF-8, and cp65001 is supposed to be UTF-8 according to Microsoft (e.g. http://msdn.microsoft.com/en-us/library/86hf4sb8%28en-US,VS.80%29.aspx ). ---------- nosy: +davidsarah _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6058> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com