From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 26 Jun 2025 23:01:43 +0000 (+0200) Subject: [3.14] gh-135995: Fix missing char in palmos encoding (GH-135990) (#136001) X-Git-Tag: v3.14.0b4~86 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9798a8de1a19a4fc4ede2f4ed2e53a9581259ad0;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-135995: Fix missing char in palmos encoding (GH-135990) (#136001) gh-135995: Fix missing char in palmos encoding (GH-135990) 0x8b correctly encodes to ‹, but 0x9b was mistakenly marked as a control character instead of ›. --------- (cherry picked from commit 58a42dea97f4fa0df38ef4a95a2ede65e0549f71) Co-authored-by: Nathan Korth Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Brian Schubert Co-authored-by: Terry Jan Reedy --- diff --git a/Lib/encodings/palmos.py b/Lib/encodings/palmos.py index c506d6545234..df164ca5b954 100644 --- a/Lib/encodings/palmos.py +++ b/Lib/encodings/palmos.py @@ -201,7 +201,7 @@ decoding_table = ( '\u02dc' # 0x98 -> SMALL TILDE '\u2122' # 0x99 -> TRADE MARK SIGN '\u0161' # 0x9A -> LATIN SMALL LETTER S WITH CARON - '\x9b' # 0x9B -> + '\u203a' # 0x9B -> SINGLE RIGHT-POINTING ANGLE QUOTATION MARK '\u0153' # 0x9C -> LATIN SMALL LIGATURE OE '\x9d' # 0x9D -> '\x9e' # 0x9E -> diff --git a/Misc/NEWS.d/next/Library/2025-06-26-17-28-49.gh-issue-135995.pPrDCt.rst b/Misc/NEWS.d/next/Library/2025-06-26-17-28-49.gh-issue-135995.pPrDCt.rst new file mode 100644 index 000000000000..998b3cd85b1d --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-26-17-28-49.gh-issue-135995.pPrDCt.rst @@ -0,0 +1 @@ +In the palmos encoding, make byte ``0x9b`` decode to ``›`` (U+203A - SINGLE RIGHT-POINTING ANGLE QUOTATION MARK).