From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 59357 invoked by alias); 18 Oct 2018 18:10:50 -0000 Mailing-List: contact libc-locales-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-locales-owner@sourceware.org Received: (qmail 59271 invoked by uid 55); 18 Oct 2018 18:10:45 -0000 From: "keld at keldix dot com" To: libc-locales@sourceware.org Subject: [Bug localedata/23791] Wrong monetary format for ca_ES locale Date: Thu, 18 Oct 2018 18:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: localedata X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: keld at keldix dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-q4/txt/msg00071.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D23791 --- Comment #4 from keld at keldix dot com --- Looks like the CLDR def is wrong, using . as decimal point and , as thousan= ds 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=3D23791 >=20 > 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: --- >=20 > 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: >=20 > (nclone) pokoli@archy =C2=BB python=20 > Python 3.7.0 (default, Sep 15 2018, 19:13:07)=20 > [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' >=20 >=20 > I'm using ca_AD but it inherits the definition from ca_ES >=20 > CLDR[2] has the following definition: >=20 > > #,##0.00 =C2=A4 > > > #,##0.00 =C2=A4;(#,##0.00 =C2=A4) > >=20 > [1] > https://www.uoc.edu/portal/ca/servei-linguistic/convencions/escriptura-nu= merals/index.html > [2] http://unicode.org/cldr/trac/browser/trunk/common/main/ca.xml#L5548 >=20 > --=20 > You are receiving this mail because: > You are on the CC list for the bug. --=20 You are receiving this mail because: You are on the CC list for the bug.