mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
gh-102388: Add windows_31j to aliases for cp932 codec (#102389)
The charset name "Windows-31J" is registered in the IANA Charset Registry[1] and is implemented in Python as the cp932 codec. [1] https://www.iana.org/assignments/charset-reg/windows-31J Signed-off-by: Masayuki Moriyama <masayuki.moriyama@miraclelinux.com>
This commit is contained in:
parent
177b9cb52e
commit
1476ac2c58
3 changed files with 4 additions and 1 deletions
|
@ -1132,7 +1132,8 @@ particular, the following variants typically exist:
|
|||
+-----------------+--------------------------------+--------------------------------+
|
||||
| cp875 | | Greek |
|
||||
+-----------------+--------------------------------+--------------------------------+
|
||||
| cp932 | 932, ms932, mskanji, ms-kanji | Japanese |
|
||||
| cp932 | 932, ms932, mskanji, ms-kanji, | Japanese |
|
||||
| | windows-31j | |
|
||||
+-----------------+--------------------------------+--------------------------------+
|
||||
| cp949 | 949, ms949, uhc | Korean |
|
||||
+-----------------+--------------------------------+--------------------------------+
|
||||
|
|
|
@ -209,6 +209,7 @@ aliases = {
|
|||
'ms932' : 'cp932',
|
||||
'mskanji' : 'cp932',
|
||||
'ms_kanji' : 'cp932',
|
||||
'windows_31j' : 'cp932',
|
||||
|
||||
# cp949 codec
|
||||
'949' : 'cp949',
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Add ``windows_31j`` to aliases for ``cp932`` codec
|
Loading…
Add table
Add a link
Reference in a new issue