-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
cp720 encoding map #44344
Comments
I'm working on Bazaar (bzr) VCS. One of our user report about bug that occurs because of his Windows XP machine use cp720 codepage for DOS console. cp720 is OEM Arabic codepage. Python standard library does not have encoding map for this encoding so I create corresponding one. Attached patch provide cp720.py file for encodings package and mention this encoding in documentation. |
Where did you get CP720.txt from? Just generating the file is not good enough: it must be integrated somehow into Tools/unicode. |
Please provide a reference defining the encoding. The only reference I could find was http://msdn2.microsoft.com/en-us/library/system.text.encoding(vs.80).aspx Thanks. |
When I start working on cp720 I'm search in google for cp720. I found this presentation with actual map of chars: Then I try to search for CP720.txt file and I found this page: I download archive from that page and use CP720.txt to generate cp720.py. |
File Added: CP720.TXT |
Here is the map on the Microsoft site: |
As a user I experienced this bug. With python 3.1, the interpreter I think, this can be replicated by changing the active code page in the
without the patch python would crash after this command. |
Instead of using another source of third-party files, I suggest to use the Windows I use it like this: The generated file is also in the patch. |
Amaury: your approach sounds fine to me, please apply. |
Reconsidering, I'd like to ask for two changes:
|
The codec file now starts with the comment: I also added a file Tools\unicode\genwincodecs.bat that currently only Applied in r74000 (trunk) and r74003 & r74004 (py3k) |
As the author of original patch I want to note that it seems your merged Please, update the docs as well. |
I think it is, see r74006 and |
OK, thanks. |
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: