Message138516
> 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. |
|
| Date |
User |
Action |
Args |
| 2011-06-17 15:41:07 | vstinner | set | recipients:
+ vstinner, loewis, amaury.forgeotdarc, ocean-city |
| 2011-06-17 15:41:07 | vstinner | set | messageid: <[email protected]> |
| 2011-06-17 15:41:06 | vstinner | link | issue12281 messages |
| 2011-06-17 15:41:06 | vstinner | create | |
|