This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug localedata/2349] New: wrong number formatting in locales *_CH


Description of problem:

The number formatting in the folllowing locales is wrong in respect of 
thousands
grouping - the sign used is a whitespace, but it should be a "'".

de_CH
de_CH.iso88591
de_CH.utf8
fr_CH
fr_CH.iso88591
fr_CH.utf8
it_CH
it_CH.iso88591
it_CH.utf8


How reproducible:

Always

Steps to Reproduce:

1. Assign a locale, like with setlocale (LC_ALL, 'de_CH'); in PHP
2. Output a number with at least 4 digits left of the decimal delimiter
  
Actual results:

1 234 567 890.00

Expected results:

1'234'567'890.00



In the end, it_CH,de_CH and fr_CH should be the same for the formatting.

So in summary it should be somthing like this:

Numeric definitions
                Decimal point char: '.'
                Thousands separator: '''
        Monetary definitions
                International currency symbol: CHF
                Local currency symbol: Fr.
                Decimal point char: '.'
                Thousands separator: '''
                Symbol for positive monetary values: ''
                Symbol for negative monetary values: '-'
                Fractional digits for international formatting: 2
                Fractional digits for local formatting: 2




To double-check, please have a look at how Microsoft Windows deals with it or 
to the page http://finfox.nzz.ch/s/markets_quotes.xhtml, which shows stock 
quotes and is run by the NZZ, a very important Swiss newspaper.

-- 
           Summary: wrong number formatting in locales *_CH
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: localedata
        AssignedTo: libc-locales at sources dot redhat dot com
        ReportedBy: thomas dot schwanhaeuser at aps-web dot de
                CC: glibc-bugs at sources dot redhat dot com


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]