Bug 181845 - wrong number formatting in locale de_CH
Summary: wrong number formatting in locale de_CH
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-02-17 05:19 UTC by Thomas Schwanhäuser
Modified: 2007-11-30 22:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-02-17 11:07:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.



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