From patchwork Mon Jun 10 21:58:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rafal Luzynski X-Patchwork-Id: 1113355 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-102566-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=lingonborough.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="ob9KWqiM"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45N6ZN55mpz9sND for ; Tue, 11 Jun 2019 08:02:52 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:message-id:in-reply-to :references:subject:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=AG50CZBx+2xT5xSl sV0IittUXHw0X2U/aaNBsegHOwWXRScWnxekmr8nSz0xen+rmrInKqUrfUz4IzDu lfJZctkjWz0QHBfzqI1qeDHyUnIhFuSOKmjLl1hFaJbcNIg4qgH6KPcc6Y81g8gF pyvn+3lIjuBiDYxXY8H9cOfHApY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:message-id:in-reply-to :references:subject:mime-version:content-type :content-transfer-encoding; s=default; bh=Yoe7FAhQiAp6+t1J6+tIfH 2Tfto=; b=ob9KWqiM8xHMpiHbPvLgeTjy8wRQqy8Ib3kuO6WR4DzyNc32J3TQN2 e1nNLu2OiXSfZcv/cC6fmw2xyzArXcS/qsEi+/aqdZDWuFvlWJrS4jBZlLgg0Val roGnXas8lH7m9img4BZLCAACwmqi0zzUlMkLoUY3b7exYlL2ulE0Q= Received: (qmail 28347 invoked by alias); 10 Jun 2019 22:02:47 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 28337 invoked by uid 89); 10 Jun 2019 22:02:47 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-17.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, LOTS_OF_MONEY, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=currency, monetary, thousands, H*x:Mailer X-HELO: shared-ano163.rev.nazwa.pl X-Spam-Score: 1.001 Date: Mon, 10 Jun 2019 23:58:17 +0200 (CEST) From: Rafal Luzynski To: Florian Weimer Cc: libc-alpha@sourceware.org Message-ID: <165094442.1765746.1560203897884@poczta.nazwa.pl> In-Reply-To: <718288787.1657560.1559903894199@poczta.nazwa.pl> References: <1780055980.914645.1559776082012@poczta.nazwa.pl> <87tvd1j08i.fsf@oldenburg2.str.redhat.com> <718288787.1657560.1559903894199@poczta.nazwa.pl> Subject: [PATCH v2] nl_NL locale: Correct the negative monetary format (bug 24614). MIME-Version: 1.0 Florian (and others), is this the patch you would like? Regards, Rafal -- >8 -- According to CLDR 35.1 and the bug report the correct monetary format for negative amounts should be "EUR -1 234,56" while previously it was "EUR 1 234,56-". This patch does not change the thousands (grouping) separator. [BZ #24614] * localedata/Makefile (LOCALES): Add nl_NL.UTF-8. * localedata/locales/nl_NL (n_sep_by_space): Set to 2 (a space between the currency symbol and the minus sign). (n_sign_posn): Set to 4 (the minus sign after the currency symbol). * localedata/tst-strfmon1.c (tests): Add test data for nl_NL.UTF-8. --- localedata/Makefile | 1 + localedata/locales/nl_NL | 4 ++-- localedata/tst-strfmon1.c | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/localedata/Makefile b/localedata/Makefile index 65079f9eb8..586a58e1b2 100644 --- a/localedata/Makefile +++ b/localedata/Makefile @@ -245,6 +245,7 @@ LOCALES := \ nan_TW.UTF-8@latin \ nb_NO.ISO-8859-1 \ nb_NO.UTF-8 \ + nl_NL.UTF-8 \ nn_NO.ISO-8859-1 \ om_KE.UTF-8 \ os_RU.UTF-8 \ diff --git a/localedata/locales/nl_NL b/localedata/locales/nl_NL index 1ab3277aa0..d0ba6c7283 100644 --- a/localedata/locales/nl_NL +++ b/localedata/locales/nl_NL @@ -83,9 +83,9 @@ frac_digits 2 p_cs_precedes 1 p_sep_by_space 1 n_cs_precedes 1 -n_sep_by_space 1 +n_sep_by_space 2 p_sign_posn 1 -n_sign_posn 2 +n_sign_posn 4 END LC_MONETARY LC_NUMERIC diff --git a/localedata/tst-strfmon1.c b/localedata/tst-strfmon1.c index 8292a6cad5..abad43114a 100644 --- a/localedata/tst-strfmon1.c +++ b/localedata/tst-strfmon1.c @@ -12,7 +12,8 @@ static const struct { "de_DE.ISO-8859-1", "|-12,34 EUR|-12,34|" }, { "da_DK.ISO-8859-1", "|kr. -12,34|-12,34|" }, { "zh_TW.EUC-TW", "|-NT$12.34|-12.34|" }, - { "sv_SE.ISO-8859-1", "|-12,34 kr|-12,34|" } + { "sv_SE.ISO-8859-1", "|-12,34 kr|-12,34|" }, + { "nl_NL.UTF-8", "|\u20ac -12,34|-12,34|" }, }; #define ntests (sizeof (tests) / sizeof (tests[0]))