about summary refs log tree commit diff
path: root/localedata/tst-strfmon1.c
diff options
context:
space:
mode:
authorRafal Luzynski <digitalfreak@lingonborough.com>2019-06-06 00:22:54 +0200
committerRafal Luzynski <digitalfreak@lingonborough.com>2019-06-17 23:42:06 +0200
commit02d8b5ab1c89bcef2627d2b621bfb35b573852c2 (patch)
tree28181873ccbab59077e702d43ac318bd09a9ee17 /localedata/tst-strfmon1.c
parent112a0ae18b831bf31f44d81b82666980312511d6 (diff)
downloadglibc-02d8b5ab1c89bcef2627d2b621bfb35b573852c2.tar.gz
glibc-02d8b5ab1c89bcef2627d2b621bfb35b573852c2.tar.xz
glibc-02d8b5ab1c89bcef2627d2b621bfb35b573852c2.zip
nl_NL locale: Correct the negative monetary format (bug 24614).
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.
Diffstat (limited to 'localedata/tst-strfmon1.c')
-rw-r--r--localedata/tst-strfmon1.c3
1 files changed, 2 insertions, 1 deletions
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]))