]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-61456: Add Thai language codec aliases (#15079)
authorbtwood <4839861+btwood@users.noreply.github.com>
Mon, 7 Apr 2025 11:06:32 +0000 (05:06 -0600)
committerGitHub <noreply@github.com>
Mon, 7 Apr 2025 11:06:32 +0000 (13:06 +0200)
Adding aliases for Thai language support. The current code page is an implementation of the windows code page.
This will alias '874', 'ms874', and 'windows_874' to cp874, adding Thai language support for those users.

Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
Lib/encodings/aliases.py
Misc/NEWS.d/next/Library/2019-08-05-13-58-10.bpo-17254.11xglZ.rst [new file with mode: 0644]

index 664b317697eb95485ff70e756a9328526c507c36..a94bb270671e3777f4c176065c431fcf0ae12a00 100644 (file)
@@ -204,6 +204,11 @@ aliases = {
     'csibm869'           : 'cp869',
     'ibm869'             : 'cp869',
 
+    # cp874 codec
+    '874'                : 'cp874',
+    'ms874'              : 'cp874',
+    'windows_874'        : 'cp874',
+
     # cp932 codec
     '932'                : 'cp932',
     'ms932'              : 'cp932',
diff --git a/Misc/NEWS.d/next/Library/2019-08-05-13-58-10.bpo-17254.11xglZ.rst b/Misc/NEWS.d/next/Library/2019-08-05-13-58-10.bpo-17254.11xglZ.rst
new file mode 100644 (file)
index 0000000..ac66f02
--- /dev/null
@@ -0,0 +1 @@
+Added aliases for Thai Language using Microsoft Code Pages.