Bug 181845 - wrong number formatting in locale de_CH
wrong number formatting in locale de_CH
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: glibc (Show other bugs)
4
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2006-02-17 00:19 EST by Thomas Schwanhäuser
Modified: 2007-11-30 17:11 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-02-17 06:07:12 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Thomas Schwanhäuser 2006-02-17 00:19:18 EST
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
Comment 1 Frank Arnold 2006-02-17 05:44:12 EST
Set to the right component. It's hardly a kernel bug... ;)

You might have a look at the following list. There are some inconsistencies,
especially with decimal point characters. I don't know which ones are used in
Switzerland.

Locale: 'de_CH'
        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

Locale: 'it_CH'
        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

Locale: 'fr_CH'
        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
Comment 2 Thomas Schwanhäuser 2006-02-17 05:59:39 EST
Thanks, sorry I looked for something like "locale" in the components list...;-)

Okay, it seems that there are a lot of mistakes (e.g. "," as decimal seperator 
in it_CH numeric but "." as monetary decimal point char...).

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


Is there a way that I can change it locally before a update comes out?
Comment 3 Jakub Jelinek 2006-02-17 06:07:12 EST
Please report this upstream to http://sources.redhat.com/bugzilla/,
product glibc, component localedata, and provide references to standard documents
or multiple newspapers that prove your claims.

Note You need to log in before you can comment on or make changes to this bug.