]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-131358: Add encoding alias cseuckr for euc_kr (#131370)
authorSrinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com>
Wed, 19 Mar 2025 09:29:20 +0000 (14:59 +0530)
committerGitHub <noreply@github.com>
Wed, 19 Mar 2025 09:29:20 +0000 (18:29 +0900)
* Add encoding alias cseuckr for euc_kr

* Update Misc/NEWS.d/next/Library/2025-03-17-21-35-53.gh-issue-131358.YVZ6yo.rst

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
---------

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Lib/encodings/aliases.py
Misc/NEWS.d/next/Library/2025-03-17-21-35-53.gh-issue-131358.YVZ6yo.rst [new file with mode: 0644]

index 6a5ca046b5eb6cd46e5caa6fc7d84513beb8d85a..664b317697eb95485ff70e756a9328526c507c36 100644 (file)
@@ -241,6 +241,7 @@ aliases = {
     'ks_c_5601_1987'     : 'euc_kr',
     'ksx1001'            : 'euc_kr',
     'ks_x_1001'          : 'euc_kr',
+    'cseuckr'            : 'euc_kr',
 
     # gb18030 codec
     'gb18030_2000'       : 'gb18030',
diff --git a/Misc/NEWS.d/next/Library/2025-03-17-21-35-53.gh-issue-131358.YVZ6yo.rst b/Misc/NEWS.d/next/Library/2025-03-17-21-35-53.gh-issue-131358.YVZ6yo.rst
new file mode 100644 (file)
index 0000000..870d025
--- /dev/null
@@ -0,0 +1 @@
+Register ``cseuckr`` as an encoding alias for ``euc_kr``.