This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[committed, PATCH] chr_US locale: Fix yesexpr and noexpr
- From: Mike FABIAN <mfabian at redhat dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Thu, 26 Oct 2017 10:58:27 +0200
- Subject: [committed, PATCH] chr_US locale: Fix yesexpr and noexpr
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=mfabian at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 43CDE90901
* localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
match also for the contents of yesstr and nostr. As the first letter
of yesstr and nostr is equal, checking only for the first letter
is not enough.
-
--
Mike FABIAN <mfabian@redhat.com>
>From effc9e1d50912d4bc58e189ed30017bb596878b9 Mon Sep 17 00:00:00 2001
From: Mike FABIAN <mfabian@redhat.com>
Date: Wed, 25 Oct 2017 09:56:21 +0200
Subject: [PATCH 12/19] chr_US locale: Fix yesexpr and noexpr
* localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
match also for the contents of yesstr and nostr. As the first letter
of yesstr and nostr is equal, checking only for the first letter
is not enough.
---
ChangeLog | 7 +++++++
localedata/locales/chr_US | 4 ++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4dc57d8189..337af44277 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-10-25 Mike FABIAN <mfabian@redhat.com>
+
+ * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
+ match also for the contents of yesstr and nostr. As the first letter
+ of yesstr and nostr is equal, checking only for the first letter
+ is not enough.
+
2017-10-25 Mike FABIAN <mfabian@redhat.com>
* localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
diff --git a/localedata/locales/chr_US b/localedata/locales/chr_US
index 1fa25fbd93..5ff061aa76 100644
--- a/localedata/locales/chr_US
+++ b/localedata/locales/chr_US
@@ -98,8 +98,8 @@ week 7;19971130;1
END LC_TIME
LC_MESSAGES
-yesexpr "<U005E><U005B><U002B><U0031><U0079><U0059><U005D>"
-noexpr "<U005E><U005B><U002D><U0030><U006E><U004E><U005D>"
+yesexpr "^([+1yY]|<U13A5><U13A5>)"
+noexpr "^([-0nN]|<U13A5><U13DD>)"
yesstr "<U13A5><U13A5>"
nostr "<U13A5><U13DD>"
END LC_MESSAGES
--
2.14.2