summaryrefslogtreecommitdiff
path: root/localedata
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2006-04-26 20:18:18 +0000
committerJakub Jelinek <jakub@redhat.com>2006-04-26 20:18:18 +0000
commitdd8c67b33fb3d422afebc83c70e51e736669b0ad (patch)
tree40569cd29262da66f41d0700391b223ad437082e /localedata
parentcb5c27ecf31a91ad8b96aa8d4777a7d7b6b33b62 (diff)
downloadglibc-dd8c67b33fb3d422afebc83c70e51e736669b0ad.tar.gz
Updated to fedora-glibc-20060426T2000
Diffstat (limited to 'localedata')
-rw-r--r--localedata/ChangeLog14
-rw-r--r--localedata/Makefile4
-rw-r--r--localedata/locales/bg_BG2
-rw-r--r--localedata/locales/bs_BA2
-rw-r--r--localedata/locales/es_MX2
-rw-r--r--localedata/locales/es_UY2
-rw-r--r--localedata/locales/ru_RU2
-rw-r--r--localedata/locales/tg_TJ2
-rw-r--r--localedata/locales/tt_RU2
-rw-r--r--localedata/tst-strfmon1.c42
10 files changed, 66 insertions, 8 deletions
diff --git a/localedata/ChangeLog b/localedata/ChangeLog
index de23e123e3..addfec9c9d 100644
--- a/localedata/ChangeLog
+++ b/localedata/ChangeLog
@@ -1,3 +1,17 @@
+2006-04-26 Ulrich Drepper <drepper@redhat.com>
+
+ * bg_BG: Update after iso-4217.def update.
+ * bs_BA: Likewise.
+ * es_MX: Likewise.
+ * ru_RU: Likewise.
+ * tg_TJ: Likewise.
+ * tt_RU: Likewise.
+
+2006-04-25 Ulrich Drepper <drepper@redhat.com>
+
+ [BZ #2376]
+ * locales/es_UY: Change curreny_symbol.
+
2006-04-24 Ulrich Drepper <drepper@redhat.com>
[BZ #2349]
diff --git a/localedata/Makefile b/localedata/Makefile
index ed76a897d0..278cd71081 100644
--- a/localedata/Makefile
+++ b/localedata/Makefile
@@ -92,7 +92,8 @@ locale_test_suite := tst_iswalnum tst_iswalpha tst_iswcntrl \
tst_wctype tst_wcwidth
tests = $(locale_test_suite) tst-digits tst-setlocale bug-iconv-trans \
- tst-leaks tst-mbswcs6 tst-xlocale1 tst-xlocale2 bug-usesetlocale
+ tst-leaks tst-mbswcs6 tst-xlocale1 tst-xlocale2 bug-usesetlocale \
+ tst-strfmon1
ifeq (yes,$(build-shared))
ifneq (no,$(PERL))
tests: $(objpfx)mtrace-tst-leaks
@@ -283,6 +284,7 @@ tst-digits-ENV = $(TEST_MBWC_ENV)
tst-mbswcs6-ENV = $(TEST_MBWC_ENV)
tst-xlocale1-ENV = $(TEST_MBWC_ENV)
tst-xlocale2-ENV = $(TEST_MBWC_ENV)
+tst-strfmon1-ENV = $(TEST_MBWC_ENV)
tst-setlocale-ENV = LOCPATH=$(common-objpfx)localedata LC_ALL=ja_JP.EUC-JP
diff --git a/localedata/locales/bg_BG b/localedata/locales/bg_BG
index 2736174c4a..bb15588f84 100644
--- a/localedata/locales/bg_BG
+++ b/localedata/locales/bg_BG
@@ -155,7 +155,7 @@ reorder-end
END LC_COLLATE
LC_MONETARY
-int_curr_symbol "<U0042><U0047><U004C><U0020>"
+int_curr_symbol "<U0042><U0047><U004E><U0020>"
currency_symbol "<U043B><U0432>"
mon_decimal_point "<U002C>"
mon_thousands_sep "<U00A0>"
diff --git a/localedata/locales/bs_BA b/localedata/locales/bs_BA
index 80cc49ffda..9d0a0e6376 100644
--- a/localedata/locales/bs_BA
+++ b/localedata/locales/bs_BA
@@ -149,7 +149,7 @@ noexpr "<U005E><U005B><U006E><U004E><U005D><U002A><U002E>"
END LC_MESSAGES
LC_MONETARY
-int_curr_symbol "<U0042><U0041><U004B><U0020>"
+int_curr_symbol "<U0042><U0041><U004D><U0020>"
currency_symbol "<U004B><U004D>"
mon_decimal_point "<U002C>"
mon_thousands_sep "<U0020>"
diff --git a/localedata/locales/es_MX b/localedata/locales/es_MX
index 70e5ae7abb..d090008da6 100644
--- a/localedata/locales/es_MX
+++ b/localedata/locales/es_MX
@@ -61,7 +61,7 @@ noexpr "<U005E><U005B><U006E><U004E><U005D><U002E><U002A>"
END LC_MESSAGES
LC_MONETARY
-int_curr_symbol "<U004D><U0058><U0050><U0020>"
+int_curr_symbol "<U004D><U0058><U004E><U0020>"
currency_symbol "<U0024>"
mon_decimal_point "<U002E>"
mon_thousands_sep "<U002C>"
diff --git a/localedata/locales/es_UY b/localedata/locales/es_UY
index 36d18b1af2..50f8019da2 100644
--- a/localedata/locales/es_UY
+++ b/localedata/locales/es_UY
@@ -62,7 +62,7 @@ END LC_MESSAGES
LC_MONETARY
int_curr_symbol "<U0055><U0059><U0055><U0020>"
-currency_symbol "<U004E><U0024>"
+currency_symbol "<U0024>"
mon_decimal_point "<U002C>"
mon_thousands_sep "<U002E>"
mon_grouping 3;3
diff --git a/localedata/locales/ru_RU b/localedata/locales/ru_RU
index 2fdffb12cb..0308c5b79a 100644
--- a/localedata/locales/ru_RU
+++ b/localedata/locales/ru_RU
@@ -74,7 +74,7 @@ noexpr "<U005E><U005B><U041D><U043D><U004E><U006E><U005D><U002E><U002A>"
END LC_MESSAGES
LC_MONETARY
-int_curr_symbol "<U0052><U0055><U0052><U0020>"
+int_curr_symbol "<U0052><U0055><U0042><U0020>"
currency_symbol "<U0440><U0443><U0431>"
mon_decimal_point "<U002E>"
mon_thousands_sep "<U0020>"
diff --git a/localedata/locales/tg_TJ b/localedata/locales/tg_TJ
index 3f9b58a1fb..5cd8422259 100644
--- a/localedata/locales/tg_TJ
+++ b/localedata/locales/tg_TJ
@@ -126,7 +126,7 @@ noexpr "<U005E><U005B><U041D><U043D><U004E><U006E><U005D><U002E><U002A>"
END LC_MESSAGES
LC_MONETARY
-int_curr_symbol "<U0052><U0055><U0052><U0020>"
+int_curr_symbol "<U0052><U0055><U0053><U0020>"
currency_symbol "<U0440><U0443><U0431>"
mon_decimal_point "<U002E>"
mon_thousands_sep "<U0020>"
diff --git a/localedata/locales/tt_RU b/localedata/locales/tt_RU
index 31a3de1c2b..858cfb8f4f 100644
--- a/localedata/locales/tt_RU
+++ b/localedata/locales/tt_RU
@@ -227,7 +227,7 @@ noexpr "<U005E><U005B><U041D><U043D><U004E><U006E><U005D><U002E><U002A>"
END LC_MESSAGES
LC_MONETARY
-int_curr_symbol "<U0052><U0055><U0052><U0020>"
+int_curr_symbol "<U0052><U0055><U0042><U0020>"
currency_symbol "<U0440><U0443><U0431>"
mon_decimal_point "<U002E>"
mon_thousands_sep "<U0020>"
diff --git a/localedata/tst-strfmon1.c b/localedata/tst-strfmon1.c
new file mode 100644
index 0000000000..e30aa1b204
--- /dev/null
+++ b/localedata/tst-strfmon1.c
@@ -0,0 +1,42 @@
+#include <monetary.h>
+#include <locale.h>
+#include <stdio.h>
+#include <string.h>
+
+static const struct
+{
+ const char *locale;
+ const char *expected;
+} tests[] =
+ {
+ { "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|" }
+ };
+#define ntests (sizeof (tests) / sizeof (tests[0]))
+
+
+static int
+do_test (void)
+{
+ int res = 0;
+ for (int i = 0; i < ntests; ++i)
+ {
+ char buf[500];
+ if (setlocale (LC_ALL, tests[i].locale) == NULL)
+ {
+ printf ("failed to set locale %s\n", tests[i].locale);
+ res = 1;
+ continue;
+ }
+ strfmon (buf, sizeof (buf), "|%n|%!n|", -12.34, -12.34);
+ int fail = strcmp (buf, tests[i].expected) != 0;
+ printf ("%s%s\n", buf, fail ? " *** FAIL ***" : "");
+ res |= fail;
+ }
+ return res;
+}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"