From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19767 invoked by alias); 27 Feb 2011 22:44:01 -0000 Received: (qmail 19758 invoked by uid 22791); 27 Feb 2011 22:44:00 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 27 Feb 2011 22:43:56 +0000 From: "van.de.bugger at gmail dot com" To: glibc-bugs@sources.redhat.com Subject: [Bug localedata/10871] Ru_RU month names are in incorrect form X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: localedata X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: van.de.bugger at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: libc-locales at sources dot redhat.com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Sun, 27 Feb 2011 22:44:00 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2011-02/txt/msg00102.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=3D10871 van.de.bugger at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |van.de.bugger at gmail dot | |com --- Comment #3 from van.de.bugger at gmail dot com 2011-02-27 22:43:44 UTC = --- (In reply to comment #2) > You'll have to provide a complete patch. I could provide a patch, but there is a problem in specification. Neither "= man 5 locale" nor "man date" specify the case of name. It is not clear whether = it should be nominative, genitive or some another case. For example, "date +'%d %B %Y'" produces "28 =D0=A4=D0=B5=D0=B2=D1=80=D0=B0= =D0=BB=D1=8C 2011" which looks incorrect (the first letter should be small, not capital, the form should b= e ). However, "date +'%B, %d-e'" produces "=D0=A4=D0=B5=D0=B2=D1=80=D0=B0=D0=BB= =D1=8C, 28-e" which looks correct. "date +'%B'" produces just months name "=D0=A4=D0=B5=D0=B2=D1=80=D0=B0=D0=BB=D1= =8C". I cannot say whether it correct or not without context. The only clue could be `d_fmt' and `date_fmt' (but latter one is not descri= bed in "man 5 locale") values in locale definition file. It looks like date str= ing produced with `date_fmt' should be correct, which means it Russian locale m= onth name (%B) should be in genitive case. But it may break some existing progra= ms which expect month name in nominative case... The solution could be extending `mon' array. For example, it could contain = 12, 24, or even more elements. Element #1 is name of January in nominative case, element #13 is name of January in genitive case, #25 is the name of January= in some 3rd case, etc. `%B' is name of month in nominative case, `%1B' is the = same as `%B', `%2B' is the name of months in genitive case, `%3B' is the name of months in the "3rd" case, etc. Alternatively, it could be multidimensional array, so in construct `%nB' n selects the proper dimension. Any thoughts on that? --=20 Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=3Demail ------- You are receiving this mail because: ------- You are on the CC list for the bug.