From: btwood <4839861+btwood@users.noreply.github.com> Date: Mon, 7 Apr 2025 11:06:32 +0000 (-0600) Subject: gh-61456: Add Thai language codec aliases (#15079) X-Git-Tag: v3.14.0a7~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=895d983b5c9716aaaab34d14d278084b9b6730d8;p=thirdparty%2FPython%2Fcpython.git 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 --- 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.