This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [Patch] Remove unwanted whitespace in zh_CN locale
- From: David Miller <davem at davemloft dot net>
- To: law at redhat dot com
- Cc: libc-locales at sources dot redhat dot com, libc-alpha at sourceware dot org
- Date: Mon, 03 Dec 2012 12:31:21 -0500 (EST)
- Subject: Re: [Patch] Remove unwanted whitespace in zh_CN locale
- References: <50BCDDA4.2000706@redhat.com>
From: Jeff Law <law@redhat.com>
Date: Mon, 03 Dec 2012 10:13:08 -0700
>
> 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?
I'm personally fine with this for 2.17