about summary refs log tree commit diff
path: root/stdlib
diff options
context:
space:
mode:
authorMike FABIAN <mfabian@redhat.com>2017-08-12 17:15:25 +0200
committerMike FABIAN <mfabian@redhat.com>2017-08-12 17:20:24 +0200
commita6bd872286b981b08577218c00e1ea693bad6095 (patch)
tree0300489261a3d652f5011af864515ba30a4ebd18 /stdlib
parentd68b451903acfa1f8c64bb168b2cbe78beeacb3d (diff)
downloadglibc-a6bd872286b981b08577218c00e1ea693bad6095.tar.gz
glibc-a6bd872286b981b08577218c00e1ea693bad6095.tar.xz
glibc-a6bd872286b981b08577218c00e1ea693bad6095.zip
Adapt test case data to the changes in the thousands separators
	[BZ #20756]
	* localedata/tst-langinfo.sh: Adapt test case data.
	* stdlib/tst-strfmon_l.c: Likewise.
	* stdlib/tst-strtod4.c: Likewise.
	* stdlib/tst-strtod5i.c: Likewise.
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/tst-strfmon_l.c8
-rw-r--r--stdlib/tst-strtod4.c6
-rw-r--r--stdlib/tst-strtod5i.c6
3 files changed, 10 insertions, 10 deletions
diff --git a/stdlib/tst-strfmon_l.c b/stdlib/tst-strfmon_l.c
index ed7d486960..dff186f97a 100644
--- a/stdlib/tst-strfmon_l.c
+++ b/stdlib/tst-strfmon_l.c
@@ -150,11 +150,11 @@ static const struct locale_pair tests[] =
       "tg_TJ.UTF-8",
       {
         {
-          "1 234 567.89 TJS", "1 234 567.89 \u0440\u0443\u0431",
+          "1\u202f234\u202f567.89 TJS", "1\u202f234\u202f567.89 \u0440\u0443\u0431",
           "1234567.89 TJS", "1234567.89 \u0440\u0443\u0431"
         },
         {
-          "-1 234 567.89 TJS", "-1 234 567.89 \u0440\u0443\u0431",
+          "-1\u202f234\u202f567.89 TJS", "-1\u202f234\u202f567.89 \u0440\u0443\u0431",
           "-1234567.89 TJS", "-1234567.89 \u0440\u0443\u0431"
         }
       }
@@ -163,11 +163,11 @@ static const struct locale_pair tests[] =
       "hr_HR.UTF-8",
       {
         {
-          "HRK 1 234 567,89", "Kn 1 234 567,89",
+          "HRK 1\u202f234\u202f567,89", "Kn 1\u202f234\u202f567,89",
           "HRK 1234567,89", "Kn 1234567,89"
         },
         {
-          "-HRK 1 234 567,89", "-Kn 1 234 567,89",
+          "-HRK 1\u202f234\u202f567,89", "-Kn 1\u202f234\u202f567,89",
           "-HRK 1234567,89", "-Kn 1234567,89"
         }
       }
diff --git a/stdlib/tst-strtod4.c b/stdlib/tst-strtod4.c
index 2d9d54c944..aae9835d82 100644
--- a/stdlib/tst-strtod4.c
+++ b/stdlib/tst-strtod4.c
@@ -3,7 +3,7 @@
 #include <stdlib.h>
 #include <string.h>
 
-#define NBSP "\xc2\xa0"
+#define NNBSP "\xe2\x80\xaf"
 
 static const struct
 {
@@ -12,8 +12,8 @@ static const struct
   double expected;
 } tests[] =
   {
-    { "000"NBSP"000"NBSP"000", "", 0.0 },
-    { "1"NBSP"000"NBSP"000,5x", "x", 1000000.5 }
+    { "000"NNBSP"000"NNBSP"000", "", 0.0 },
+    { "1"NNBSP"000"NNBSP"000,5x", "x", 1000000.5 }
   };
 #define NTESTS (sizeof (tests) / sizeof (tests[0]))
 
diff --git a/stdlib/tst-strtod5i.c b/stdlib/tst-strtod5i.c
index 7e319585bb..d7135daaf6 100644
--- a/stdlib/tst-strtod5i.c
+++ b/stdlib/tst-strtod5i.c
@@ -22,7 +22,7 @@
 #include <string.h>
 #include <math.h>
 
-#define NBSP "\xc2\xa0"
+#define NNBSP "\xe2\x80\xaf"
 
 static const struct
 {
@@ -57,8 +57,8 @@ static const struct
     { "-0e-10", 1, -0.0 },
     { "0e-1000000", 1, 0.0 },
     { "-0e-1000000", 1, -0.0 },
-    { "000"NBSP"000"NBSP"000", 1, 0.0 },
-    { "-000"NBSP"000"NBSP"000", 1, -0.0 }
+    { "000"NNBSP"000"NNBSP"000", 1, 0.0 },
+    { "-000"NNBSP"000"NNBSP"000", 1, -0.0 }
   };
 #define NTESTS (sizeof (tests) / sizeof (tests[0]))