From aa4d00ca39e604ac4e9fead401ccd4483e11a281 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 25 Nov 2016 11:12:10 -0500 Subject: [PATCH] localedata: GBK: add mapping for 0x80->Euro sign [BZ #20864] Microsoft long ago added a mapping for 0x80 to the Euro sign to their CP936. While GBK 1.0 doesn't include this mapping, it is compatible, and Microsoft and glibc alias the two codepages. We could split them apart so GBK wouldn't include the mapping, but that seems like a lot of work for little gain. --- localedata/ChangeLog | 5 +++++ localedata/charmaps/GBK | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/localedata/ChangeLog b/localedata/ChangeLog index f5c58ae0dc..cb514baae3 100644 --- a/localedata/ChangeLog +++ b/localedata/ChangeLog @@ -1,3 +1,8 @@ +2016-11-26 Mike Frysinger + + [BZ #20864] + * localedata/GBK: Map 0x80 to U20AC. + 2016-08-24 Ernestas Kulik [BZ #20497] diff --git a/localedata/charmaps/GBK b/localedata/charmaps/GBK index 4c35f1426c..4186896f2a 100644 --- a/localedata/charmaps/GBK +++ b/localedata/charmaps/GBK @@ -3,10 +3,15 @@ 1 % / +% https://en.wikipedia.org/wiki/GBK +% https://www-01.ibm.com/software/globalization/ccsid/ccsid936.html % alias CP936 + +% ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WindowsBestFit % alias MS936 % alias WINDOWS-936 + CHARMAP /x00 NULL (NUL) /x01 START OF HEADING (SOH) @@ -136,6 +141,8 @@ CHARMAP /x7d RIGHT CURLY BRACKET /x7e TILDE /x7f DELETE (DEL) +% This isn't in GBK 1.0, but Microsoft added it to their CP936 page. + /x80 EURO SIGN /x81/x40 /x81/x41