Bug 181845

Summary: wrong number formatting in locale de_CH
Product: [Fedora] Fedora Reporter: Thomas Schwanhäuser <thomas.schwanhaeuser>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED UPSTREAM QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: frank, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-17 11:07:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Thomas Schwanhäuser 2006-02-17 05:19:18 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

Comment 1 Frank Arnold 2006-02-17 10:44:12 UTC
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 10:59:39 UTC
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 11:07:12 UTC
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.