From 895d983b5c9716aaaab34d14d278084b9b6730d8 Mon Sep 17 00:00:00 2001 From: btwood <4839861+btwood@users.noreply.github.com> Date: Mon, 7 Apr 2025 05:06:32 -0600 Subject: [PATCH] gh-61456: Add Thai language codec aliases (#15079) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- Lib/encodings/aliases.py | 5 +++++ .../next/Library/2019-08-05-13-58-10.bpo-17254.11xglZ.rst | 1 + 2 files changed, 6 insertions(+) create mode 100644 Misc/NEWS.d/next/Library/2019-08-05-13-58-10.bpo-17254.11xglZ.rst diff --git a/Lib/encodings/aliases.py b/Lib/encodings/aliases.py index 664b317697eb..a94bb270671e 100644 --- a/Lib/encodings/aliases.py +++ b/Lib/encodings/aliases.py @@ -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 index 000000000000..ac66f023cbbd --- /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. -- 2.47.3