-
-
Notifications
You must be signed in to change notification settings - Fork 30k
-
-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 'oem' encoding #72146
Comments
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 CP_ACP. |
While I'm here, should also move |
Initial patch attached - tests to follow. |
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 |
Addressed most of the feedback, though I think having a fallback search function instead of the alias is better. |
Rebased patch to get a review button. |
New changeset c499690f606c by Steve Dower in branch 'default': |
New changeset fd0e62300fb7 by Steve Dower in branch 'default': |
New changeset 786c34bdc27a by Steve Dower in branch 'default': |
New changeset 47b4dbd451f5 by Steve Dower in branch 'default': |
New changeset 4e80a157ea66 by Steve Dower in branch 'default': |
Last commit was supposed to be for bpo-28005 |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: