Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 80c8f24

Browse files
committed
gh-102388: Add windows_31j to aliases for cp932 codec
The charset name "Windows-31J" is registered in the IANA Charset Registry[1] and is implemented in Python as the cp932 codec. This commit adds windows_31j to the aliases of cp932. [1] https://www.iana.org/assignments/charset-reg/windows-31J Signed-off-by: Masayuki Moriyama <[email protected]>
1 parent 12011dd commit 80c8f24

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Doc/library/codecs.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,8 @@ particular, the following variants typically exist:
11261126
+-----------------+--------------------------------+--------------------------------+
11271127
| cp875 | | Greek |
11281128
+-----------------+--------------------------------+--------------------------------+
1129-
| cp932 | 932, ms932, mskanji, ms-kanji | Japanese |
1129+
| cp932 | 932, ms932, mskanji, ms-kanji, | Japanese |
1130+
| | windows_31j | |
11301131
+-----------------+--------------------------------+--------------------------------+
11311132
| cp949 | 949, ms949, uhc | Korean |
11321133
+-----------------+--------------------------------+--------------------------------+

Lib/encodings/aliases.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@
209209
'ms932' : 'cp932',
210210
'mskanji' : 'cp932',
211211
'ms_kanji' : 'cp932',
212+
'windows_31j' : 'cp932',
212213

213214
# cp949 codec
214215
'949' : 'cp949',

0 commit comments

Comments
 (0)