This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[Patch] Remove unwanted whitespace in zh_CN locale
- From: Jeff Law <law at redhat dot com>
- To: libc-locales at sources dot redhat dot com
- Cc: libc-alpha <libc-alpha at sourceware dot org>
- Date: Mon, 03 Dec 2012 10:13:08 -0700
- Subject: [Patch] Remove unwanted whitespace in zh_CN locale
According to this downstream bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=657588
Whitespace in the abbreviated months can cause problems reading dates
with strptime with a pattern such as %Y %b %d. The space after the %Y
will match any number of spaces in the input string. Thus there's no
space left in the input string to match the space at the start of the
abbreviated month.
This patch fixes the zh_CN locale. I have not audited other locales to
see if they suffer from the same problem.
We've been running with this patch in Fedora since Feb 2012.
OK for the trunk, or shall we wait until post glibc-2.17?
Jeff
diff --git a/localedata/ChangeLog b/localedata/ChangeLog
index a4dc29e..52aa760 100644
--- a/localedata/ChangeLog
+++ b/localedata/ChangeLog
@@ -1,3 +1,7 @@
+2012-12-03 Jeff Law <law@redhat.com>
+
+ * locales/zh_CH (abmon): Remove whitespace.
+
2012-11-26 Nik Kalach <nikka@fedoraproject.org>
* locales/ia_FR (abmon): Fix December.
diff --git a/localedata/locales/zh_CN b/localedata/locales/zh_CN
index 11df003..1ed9d25 100644
--- a/localedata/locales/zh_CN
+++ b/localedata/locales/zh_CN
@@ -108,11 +108,11 @@ day "<U661F><U671F><U65E5>";/
"<U661F><U671F><U4E94>";/
"<U661F><U671F><U516D>"
-abmon "<U0020><U0031><U6708>";"<U0020><U0032><U6708>";/
- "<U0020><U0033><U6708>";"<U0020><U0034><U6708>";/
- "<U0020><U0035><U6708>";"<U0020><U0036><U6708>";/
- "<U0020><U0037><U6708>";"<U0020><U0038><U6708>";/
- "<U0020><U0039><U6708>";"<U0031><U0030><U6708>";/
+abmon "<U0031><U6708>";"<U0032><U6708>";/
+ "<U0033><U6708>";"<U0034><U6708>";/
+ "<U0035><U6708>";"<U0036><U6708>";/
+ "<U0037><U6708>";"<U0038><U6708>";/
+ "<U0039><U6708>";"<U0031><U0030><U6708>";/
"<U0031><U0031><U6708>";"<U0031><U0032><U6708>"
mon "<U4E00><U6708>";"<U4E8C><U6708>";"<U4E09><U6708>";/