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 amaury.forgeotdarc, loewis, ocean-city, vstinner
Date 2011-06-17.15:41:06
SpamBayes Score 0.036583725
Marked as misclassified No
Message-id <1308325267.04.0.860072965242.issue12281@psf.upfronthosting.co.za>
In-reply-to
Content
> What about something like .decode('mbcs', errors='windows')?

Yes, we can use an error handler specific to the mbcs codec, but I would prefer to not introduce special error handlers.

For os.fsencode(), we can keep it unchanged, or add an optional "flags" argument to codecs.mbcs_decode().

> I still don't see the advantage of codecs.code_page_encode().

codecs.code_page_encode() and codecs.code_page_decode() are required for unit tests. If you don't want to add new public (C and Python) functions, we may add them to _testcapi.
History
Date User Action Args
2011-06-17 15:41:07vstinnersetrecipients: + vstinner, loewis, amaury.forgeotdarc, ocean-city
2011-06-17 15:41:07vstinnersetmessageid: <1308325267.04.0.860072965242.issue12281@psf.upfronthosting.co.za>
2011-06-17 15:41:06vstinnerlinkissue12281 messages
2011-06-17 15:41:06vstinnercreate