about summary refs log tree commit diff
path: root/stdlib
diff options
context:
space:
mode:
authorMike FABIAN <mfabian@redhat.com>2017-08-10 12:16:29 +0200
committerMike FABIAN <mfabian@redhat.com>2017-08-10 13:13:22 +0200
commitbd80111ed9cb93b2d56720dcd1d1f259616c27ae (patch)
treee95280c9e10dc4575f15b37048786b09af6de6a6 /stdlib
parent4169825556bcc23ced731e711be91819465d4a83 (diff)
downloadglibc-bd80111ed9cb93b2d56720dcd1d1f259616c27ae.tar.gz
glibc-bd80111ed9cb93b2d56720dcd1d1f259616c27ae.tar.xz
glibc-bd80111ed9cb93b2d56720dcd1d1f259616c27ae.zip
Fix stdlib/tst-strfmon_l.c test case to agree with the changes in Indian monetary formatting
The test cases should expose non-standard grouping and the trailing
space after the currency sign. After the changes to the Indian
monetary formatting, the Indian formatting still shows the
non-standard grouping. To test the trailing space after the currency
sign I chose the hr_HR locale.

See:

    commit 82b3124268bec0609b337dd993e771c93e44cbf2
    Author: Akhilesh Kumar <akhilesh.k@samsung.com>

        Remove redundant data for LC_MONETARY for Indian locales
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/Makefile2
-rw-r--r--stdlib/tst-strfmon_l.c20
2 files changed, 11 insertions, 11 deletions
diff --git a/stdlib/Makefile b/stdlib/Makefile
index 4d90e14fd8..e4b36ca118 100644
--- a/stdlib/Makefile
+++ b/stdlib/Makefile
@@ -153,7 +153,7 @@ include ../Rules
 
 ifeq ($(run-built-tests),yes)
 LOCALES := cs_CZ.UTF-8 de_DE.UTF-8 en_US.ISO-8859-1 tr_TR.UTF-8 \
-	   tr_TR.ISO-8859-9 tg_TJ.UTF-8 te_IN.UTF-8 bn_IN.UTF-8 \
+	   tr_TR.ISO-8859-9 tg_TJ.UTF-8 hr_HR.UTF-8 hi_IN.UTF-8 \
 	   el_GR.UTF-8
 include ../gen-locales.mk
 
diff --git a/stdlib/tst-strfmon_l.c b/stdlib/tst-strfmon_l.c
index 49fa31907e..ed7d486960 100644
--- a/stdlib/tst-strfmon_l.c
+++ b/stdlib/tst-strfmon_l.c
@@ -160,28 +160,28 @@ static const struct locale_pair tests[] =
       }
     },
     {
-      "te_IN.UTF-8",
+      "hr_HR.UTF-8",
       {
         {
-          "INR12,34,567.89", "\u20b912,34,567.89",
-          "INR1234567.89", "\u20b91234567.89"
+          "HRK 1 234 567,89", "Kn 1 234 567,89",
+          "HRK 1234567,89", "Kn 1234567,89"
         },
         {
-          "-INR12,34,567.89", "-\u20b912,34,567.89",
-          "-INR1234567.89", "-\u20b91234567.89"
+          "-HRK 1 234 567,89", "-Kn 1 234 567,89",
+          "-HRK 1234567,89", "-Kn 1234567,89"
         }
       }
     },
     {
-      "bn_IN.UTF-8",
+      "hi_IN.UTF-8",
       {
         {
-          "INR 12,345,67.89", "\u20b9 12,345,67.89",
-          "INR 1234567.89", "\u20b9 1234567.89"
+          "INR12,34,567.89", "\u20b912,34,567.89",
+          "INR1234567.89", "\u20b91234567.89"
         },
         {
-          "-INR 12,345,67.89", "-\u20b9 12,345,67.89",
-          "-INR 1234567.89", "-\u20b9 1234567.89"
+          "-INR12,34,567.89", "-\u20b912,34,567.89",
+          "-INR1234567.89", "-\u20b91234567.89"
         }
       }
     },