]> sourceware.org Git - glibc.git/commitdiff
Fix stdlib/tst-strfmon_l.c test case to agree with the changes in Indian monetary...
authorMike FABIAN <mfabian@redhat.com>
Thu, 10 Aug 2017 10:16:29 +0000 (12:16 +0200)
committerMike FABIAN <mfabian@redhat.com>
Thu, 10 Aug 2017 11:13:22 +0000 (13:13 +0200)
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

ChangeLog
stdlib/Makefile
stdlib/tst-strfmon_l.c

index fd0ec11400988545b08419154671a54c1821a3a4..0f9a31606f6375727b62f5842a78843e96c4398e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-08-10  Mike FABIAN  <mfabian@redhat.com>
+
+       * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
+       Indian monetary formatting
+       * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
+       test cases.
+
 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
 
        * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
index 4d90e14fd8501d56d7962e63214f043e47d625fc..e4b36ca118ab60c137880327dace8e2a0ab3b617 100644 (file)
@@ -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
 
index 49fa31907ec185a37bf536e58f361e6cef6eda1c..ed7d4869607b63a9752b0fe6e75e89a4f76b4806 100644 (file)
@@ -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"
         }
       }
     },
This page took 0.043086 seconds and 5 git commands to generate.