Bug 2349 - wrong number formatting in locales *_CH
Summary: wrong number formatting in locales *_CH
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: localedata (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: GNU C Library Locale Maintainers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-17 11:21 UTC by Thomas Schwanhäuser
Modified: 2016-05-12 15:00 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments
Screenshot de_CH on Windows (30.63 KB, image/png)
2006-02-17 11:23 UTC, Thomas Schwanhäuser
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Schwanhäuser 2006-02-17 11:21:41 UTC
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.
Comment 1 Thomas Schwanhäuser 2006-02-17 11:23:10 UTC
Created attachment 870 [details]
Screenshot de_CH on Windows
Comment 2 Ulrich Drepper 2006-04-24 07:29:00 UTC
I changed the thousand separator for both categories in de_CH.  The question is
what do the other swiss locales need?  Open new bugs if any change is needed.