https://github.com/python/cpython/commit/895d983b5c9716aaaab34d14d278084b9b6730d8
commit: 895d983b5c9716aaaab34d14d278084b9b6730d8
branch: main
author: btwood <4839861+btw...@users.noreply.github.com>
committer: ambv <luk...@langa.pl>
date: 2025-04-07T13:06:32+02:00
summary:

gh-61456: Add Thai language codec aliases (#15079)

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 <luk...@langa.pl>

files:
A Misc/NEWS.d/next/Library/2019-08-05-13-58-10.bpo-17254.11xglZ.rst
M Lib/encodings/aliases.py

diff --git a/Lib/encodings/aliases.py b/Lib/encodings/aliases.py
index 664b317697eb95..a94bb270671e37 100644
--- a/Lib/encodings/aliases.py
+++ b/Lib/encodings/aliases.py
@@ -204,6 +204,11 @@
     '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
index 00000000000000..ac66f023cbbd88
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2019-08-05-13-58-10.bpo-17254.11xglZ.rst
@@ -0,0 +1 @@
+Added aliases for Thai Language using Microsoft Code Pages.

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to