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
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
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?
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.