This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients HWJ, amaury.forgeotdarc, bboissin, benjamin.peterson, djc, dlitz, draghuram, gvanrossum, loewis, pitrou, vstinner, zegreek
Date 2008-10-03.10:38:10
SpamBayes Score 6.6576405e-08
Marked as misclassified No
Message-id <200810031238.20821.victor.stinner@haypocalc.com>
In-reply-to <1222998344.24.0.868081077345.issue3187@psf.upfronthosting.co.za>
Content
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.
History
Date User Action Args
2008-10-03 10:38:11vstinnersetrecipients: + vstinner, gvanrossum, loewis, amaury.forgeotdarc, pitrou, draghuram, benjamin.peterson, djc, HWJ, dlitz, zegreek, bboissin
2008-10-03 10:38:10vstinnerlinkissue3187 messages
2008-10-03 10:38:10vstinnercreate