]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
nl_NL locale: Correct the negative monetary format (bug 24614).
authorRafal Luzynski <digitalfreak@lingonborough.com>
Wed, 5 Jun 2019 22:22:54 +0000 (00:22 +0200)
committerRafal Luzynski <digitalfreak@lingonborough.com>
Mon, 17 Jun 2019 21:42:06 +0000 (23:42 +0200)
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.

ChangeLog
localedata/Makefile
localedata/locales/nl_NL
localedata/tst-strfmon1.c

index 2f5dac5190217dd0f41f917f5a2b5c27371ed298..7401f9f05afcb7b4bd0bc5e51bccdee0e3b69ed2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2019-06-17  Rafal Luzynski  <digitalfreak@lingonborough.com>
+
+       [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.
+
 2019-06-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
        * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines,
index 65079f9eb8cbe30ec8f687dd07cd5b7e773de953..586a58e1b2a6d38cf86ae28ed0f6cae7729e7c11 100644 (file)
@@ -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 \
index 1ab3277aa0d31906c7f9615864f67eb866af3c5d..d0ba6c7283517f6d946462140c18af936704e61a 100644 (file)
@@ -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
index 8292a6cad516ad1b2b150dea57bf90b3fe4d0d00..abad43114a3ec5bdd41ac809fcbf6c57b0a738a0 100644 (file)
@@ -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]))