public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jbastian at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sources.redhat.com
Subject: [Bug localedata/13147] New: incorrect numeric settings for French, Spanish, and German locales
Date: Thu, 01 Sep 2011 19:19:00 -0000	[thread overview]
Message-ID: <bug-13147-131@http.sourceware.org/bugzilla/> (raw)

http://sourceware.org/bugzilla/show_bug.cgi?id=13147

             Bug #: 13147
           Summary: incorrect numeric settings for French, Spanish, and
                    German locales
           Product: glibc
           Version: 2.14
            Status: NEW
          Severity: normal
          Priority: P2
         Component: localedata
        AssignedTo: libc-locales@sources.redhat.com
        ReportedBy: jbastian@redhat.com
    Classification: Unclassified


Created attachment 5916
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5916
patch to update LC_NUMERIC for de, es and fr

In French (Canadian), the thousands separator is a space; it's a period in
Spanish (Spain) and in German (Austrian).  For example, "1 024" or "1.024"
respectively.

The fr_CA, es_ES, and de_AT locales in glibc-2.14 have the thousands separator
incorrectly defined as a null.

I compared the fr_*, es_*, and de_* files in glibc against the latest
Unicode CLDR (Common Locale Data Repository), version 1.9, and patched the
LC_NUMERIC section where appropriate.  See the attached patch.

http://unicode.org/Public/cldr/1.9.0/posix.zip
http://unicode.org/cldr/trac/browser/tags/release-1-9/posix/

Please update the es_*, fr_*, and de_* locale definitions.


Version-Release number of selected component (if applicable):
glibc-2.14-5 (Fedora 15)

How reproducible:
Always

Steps to Reproduce:
env LC_ALL=fr_CA.UTF-8 /usr/bin/printf "%'d\n" 4294967296
env LC_ALL=es_ES.UTF-8 /usr/bin/printf "%'d\n" 4294967296
env LC_ALL=de_AT.UTF-8 /usr/bin/printf "%'d\n" 4294967296

Actual Results:
4294967296
4294967296
4294967296

Expected Results:
4 294 967 296
4.294.967.296
4.294.967.296

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


             reply	other threads:[~2011-09-01 19:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-01 19:19 jbastian at redhat dot com [this message]
2011-11-11 16:29 ` [Bug localedata/13147] " drepper.fsp at gmail dot com
2011-11-11 17:16 ` jbastian at redhat dot com
2011-11-11 17:47 ` drepper.fsp at gmail dot com
2011-11-12  3:27 ` cjlhomeaddress at gmail dot com
2014-06-27 12:11 ` fweimer at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-13147-131@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).