[issue27959] Add 'oem' encoding

2016-09-09 Thread Steve Dower
Steve Dower added the comment: Last commit was supposed to be for issue28005 -- ___ Python tracker ___ ___

[issue27959] Add 'oem' encoding

2016-09-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4e80a157ea66 by Steve Dower in branch 'default': Revert #27959: ImportError within an encoding module should also skip the encoding https://hg.python.org/cpython/rev/4e80a157ea66 -- ___ Python tracker

[issue27959] Add 'oem' encoding

2016-09-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 47b4dbd451f5 by Steve Dower in branch 'default': Issue #27959: Prevent ImportError from escaping codec search function https://hg.python.org/cpython/rev/47b4dbd451f5 -- ___ Python tracker

[issue27959] Add 'oem' encoding

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 786c34bdc27a by Steve Dower in branch 'default': Issue #27959: Updates NEWS and whatsnew https://hg.python.org/cpython/rev/786c34bdc27a -- ___ Python tracker

[issue27959] Add 'oem' encoding

2016-09-06 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> fixed stage: -> resolved status: open -> closed type: -> enhancement ___ Python tracker

[issue27959] Add 'oem' encoding

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset fd0e62300fb7 by Steve Dower in branch 'default': Issue #27959: Documents new encoding and alias. https://hg.python.org/cpython/rev/fd0e62300fb7 -- ___ Python tracker

[issue27959] Add 'oem' encoding

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset c499690f606c by Steve Dower in branch 'default': Issue #27959: Adds oem encoding, alias ansi to mbcs, move aliasmbcs to codec lookup https://hg.python.org/cpython/rev/c499690f606c -- nosy: +python-dev

[issue27959] Add 'oem' encoding

2016-09-06 Thread STINNER Victor
STINNER Victor added the comment: Rebased patch to get a review button. -- Added file: http://bugs.python.org/file44405/27959_3.patch ___ Python tracker

[issue27959] Add 'oem' encoding

2016-09-05 Thread Steve Dower
Steve Dower added the comment: Addressed most of the feedback, though I think having a fallback search function instead of the alias is better. -- Added file: http://bugs.python.org/file44388/27959_2.patch ___ Python tracker

[issue27959] Add 'oem' encoding

2016-09-05 Thread Steve Dower
Steve Dower added the comment: Forgot to include the oem.py file in that patch, but it's basically identical to mbcs.py except calling 'oem_encode' and 'oem_decode'. It'll be in the next one -- ___ Python tracker

[issue27959] Add 'oem' encoding

2016-09-05 Thread Steve Dower
Steve Dower added the comment: Initial patch attached - tests to follow. -- keywords: +patch Added file: http://bugs.python.org/file44387/27959_1.patch ___ Python tracker

[issue27959] Add 'oem' encoding

2016-09-05 Thread Steve Dower
Steve Dower added the comment: While I'm here, should also move `aliasmbcs` from site.py into initialization - no reason for this behaviour to depend on importing site. -- ___ Python tracker

[issue27959] Add 'oem' encoding

2016-09-05 Thread Steve Dower
New submission from Steve Dower: Currently the ANSI encoding is available on Windows as 'mbcs', however the OEM encoding (sometimes used by console-based applications) is not easily available. The implementation is identical to PyUnicode_DecodeMBCS[Stateful], simply passing CP_OEM instead of