STINNER Victor <[EMAIL PROTECTED]> added the comment: Le Friday 03 October 2008 03:45:44 Amaury Forgeot d'Arc, vous avez écrit : > Here is a patch for Windows: (...) > test_ntpath also runs functions with bytes.
Which charset is used when you use bytes filename? I read somewhere that it's the "current codepage". How can the user get this codepage in Python? I ask this to complete my document: http://wiki.python.org/moin/Python3UnicodeDecodeError Don't hesitate to edit directly the document, which may also be moved to Python3 Doc/ directory. You should also support bytearray() in ntpath: isinstance(path, (bytes, bytearray)) The unit tests might use pure unicode on Windows and bytes on Linux, especially getcwd() vs getcwdb(). I don't have Windows nor Mac to test bytes filenames on these systems. _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3187> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com