From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 56097 invoked by alias); 18 Oct 2018 18:10:14 -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 56073 invoked by uid 89); 18 Oct 2018 18:10:13 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,KAM_LAZY_DOMAIN_SECURITY,KAM_SHORT,KHOP_DYNAMIC,RDNS_DYNAMIC autolearn=ham version=3.3.2 spammy=HTo:U*sourceware-bugzilla, Hx-languages-length:1709 X-HELO: rap.rap.dk Date: Thu, 18 Oct 2018 18:10:00 -0000 From: Keld Simonsen To: sergi at koolpi dot com Cc: libc-locales@sourceware.org Subject: Re: [Bug localedata/23791] New: Wrong monetary format for ca_ES locale Message-ID: <20181018181008.GA21959@rap.rap.dk> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-SW-Source: 2018-q4/txt/msg00070.txt.bz2 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: > > > #,##0.00 ¤ > > > #,##0.00 ¤;(#,##0.00 ¤) > > > [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.