From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 41821 invoked by alias); 29 Oct 2018 12:31:21 -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 41600 invoked by uid 48); 29 Oct 2018 12:31:14 -0000 From: "sergi at koolpi dot com" To: libc-locales@sourceware.org Subject: [Bug localedata/23791] Wrong monetary format for ca_ES locale Date: Mon, 29 Oct 2018 12:31: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: sergi at koolpi 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: attachments.isobsolete attachments.created 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/msg00091.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D23791 Sergi Almacellas Abellana changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #11360|0 |1 is obsolete| | --- Comment #15 from Sergi Almacellas Abellana --- Created attachment 11371 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D11371&action=3Ded= it patch_v5 Hi Robert,=20 Thanks for your input.=20 Removing the extra space from int_curr_symbol causes the following error wh= en generating locales:=20 $ locale-gen Generating locales... ca_AD.UTF-8...failed to set locale! [error] LC_MONETARY: value of field `int_curr_symbol' has wrong length done Generation complete. I've uploaded a new patch version which uses '=E2=82=AC' as currency symbol= following your suggestions. Here are my results: >>> import locale >>> locale.setlocale(locale.LC_ALL, '') 'ca_AD.UTF-8' >>> locale.currency(-1234.5, grouping=3DTrue) '-1.234,50 =E2=82=AC' >>> locale.currency(-1234.5, grouping=3DTrue) '-1.234,50 =E2=82=AC' >>> locale.currency(-1234.5, grouping=3DTrue, international=3DTrue) '-1.234,50 EUR ' >>> locale.currency(1234.5, grouping=3DTrue) '1.234,50 =E2=82=AC' >>> locale.currency(1234.5, grouping=3DTrue, international=3DTrue) '1.234,50 EUR ' Which looks good to me. --=20 You are receiving this mail because: You are on the CC list for the bug.