[Bug localedata/23791] Wrong monetary format for ca_ES locale
keld at keldix dot com
sourceware-bugzilla@sourceware.org
Thu Oct 18 18:10:00 GMT 2018
https://sourceware.org/bugzilla/show_bug.cgi?id=23791
--- Comment #4 from keld at keldix dot com <keld at keldix dot com> ---
Looks like the CLDR def is wrong, using . as decimal point and , as thousands
operator.
Or am I wrong in reading CLDR formats?
best regards
keld
On Thu, Oct 18, 2018 at 09:45:29AM +0000, sergi at koolpi dot com wrote:
> https://sourceware.org/bugzilla/show_bug.cgi?id=23791
>
> Bug ID: 23791
> Summary: Wrong monetary format for ca_ES locale
> Product: glibc
> Version: unspecified
> Status: UNCONFIRMED
> Severity: normal
> Priority: P2
> Component: localedata
> Assignee: unassigned at sourceware dot org
> Reporter: sergi at koolpi dot com
> CC: libc-locales at sourceware dot org
> Target Milestone: ---
>
> In Catalan language the monetary numbers are formatted as "1.200,00???" [1] but
> acording to the locale definition they are formated as "??? 1200,00". See:
>
> (nclone) pokoli@archy » python
> Python 3.7.0 (default, Sep 15 2018, 19:13:07)
> [GCC 8.2.1 20180831] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import locale
> >>> locale.setlocale(locale.LC_ALL, '')
> 'ca_AD.UTF-8'
> >>> locale.currency(1234)
> '??? 1234,00'
>
>
> I'm using ca_AD but it inherits the definition from ca_ES
>
> CLDR[2] has the following definition:
>
> <currencyFormat type="standard">
> <pattern>#,##0.00 ¤</pattern>
> </currencyFormat>
> <currencyFormat type="accounting">
> <pattern>#,##0.00 ¤;(#,##0.00 ¤)</pattern>
> </currencyFormat>
>
> [1]
> https://www.uoc.edu/portal/ca/servei-linguistic/convencions/escriptura-numerals/index.html
> [2] http://unicode.org/cldr/trac/browser/trunk/common/main/ca.xml#L5548
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Libc-locales
mailing list