From patchwork Fri Nov 25 16:17:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 699318 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tQLpH3kK6z9vDY for ; Sat, 26 Nov 2016 03:17:59 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="BvXmWs0x"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; q=dns; s= default; b=FAGX8uXrKla38lYiMMug+sCQ817EOiGPDwzZ/RL5woF/ix6nWXinJ GsEslcokrRP2A6zYSeUyTfVK2KlGqRVA5F0PCnMzv4S6fFes8Aok2+zlQN00U24Q HjUw22wp2V9xIjkXVwuqgNdBm2a4HcKPWMT898/gx+qB7AGgPu3bvQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; s=default; bh=Zur9SicoArzaiBwf5c9XYjCKyNo=; b=BvXmWs0xC6rbXxucT9iHQPe685sO iwxCPyiv8fyD2S7drR9/OLnwrb5xM5nn8dmaHPf8n+wA0I25zWxFjx+NsaCwZiRr bcI77GshJmZG6lvCrIbvb/wzlfi2CmClOaVQsoYXYLPqqpSbIBmXCBsd6cWozUCU xCaqv7ZcfeLTah0= Received: (qmail 30940 invoked by alias); 25 Nov 2016 16:17:53 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 30905 invoked by uid 89); 25 Nov 2016 16:17:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.5 required=5.0 tests=BAYES_05, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=Euro, DEL, EURO, gain X-HELO: smtp.gentoo.org From: Mike Frysinger To: libc-alpha@sourceware.org Subject: [PATCH] localedata: GBK: add mapping for 0x80->Euro sign [BZ #20864] Date: Fri, 25 Nov 2016 11:17:35 -0500 Message-Id: <20161125161735.3823-1-vapier@gentoo.org> 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. 2016-11-25 Mike Frysinger [BZ #20864] * localedata/GBK: Map 0x80 to U20AC. --- localedata/charmaps/GBK | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/localedata/charmaps/GBK b/localedata/charmaps/GBK index 4c35f1426c64..4186896f2a9b 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