mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
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.
This commit is contained in:
parent
d68b451903
commit
a6bd872286
5 changed files with 22 additions and 11 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
||||||
|
2017-08-12 Mike FABIAN <mfabian@redhat.com>
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
2017-08-11 Florian Weimer <fweimer@redhat.com>
|
2017-08-11 Florian Weimer <fweimer@redhat.com>
|
||||||
|
|
||||||
[BZ #21242]
|
[BZ #21242]
|
||||||
|
|
|
@ -289,7 +289,7 @@ fr_FR.ISO-8859-1 D_T_FMT "%a %d %b %Y %T %Z"
|
||||||
fr_FR.ISO-8859-1 D_FMT "%d/%m/%Y"
|
fr_FR.ISO-8859-1 D_FMT "%d/%m/%Y"
|
||||||
fr_FR.ISO-8859-1 T_FMT "%T"
|
fr_FR.ISO-8859-1 T_FMT "%T"
|
||||||
fr_FR.ISO-8859-1 RADIXCHAR ,
|
fr_FR.ISO-8859-1 RADIXCHAR ,
|
||||||
fr_FR.ISO-8859-1 THOUSEP " "
|
fr_FR.ISO-8859-1 THOUSEP " "
|
||||||
fr_FR.ISO-8859-1 YESEXPR ^[+1oOyY]
|
fr_FR.ISO-8859-1 YESEXPR ^[+1oOyY]
|
||||||
fr_FR.ISO-8859-1 NOEXPR ^[-0nN]
|
fr_FR.ISO-8859-1 NOEXPR ^[-0nN]
|
||||||
ja_JP.EUC-JP ABDAY_1 Ćü
|
ja_JP.EUC-JP ABDAY_1 Ćü
|
||||||
|
|
|
@ -150,11 +150,11 @@ static const struct locale_pair tests[] =
|
||||||
"tg_TJ.UTF-8",
|
"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"
|
"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"
|
"-1234567.89 TJS", "-1234567.89 \u0440\u0443\u0431"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -163,11 +163,11 @@ static const struct locale_pair tests[] =
|
||||||
"hr_HR.UTF-8",
|
"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 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"
|
"-HRK 1234567,89", "-Kn 1234567,89"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#define NBSP "\xc2\xa0"
|
#define NNBSP "\xe2\x80\xaf"
|
||||||
|
|
||||||
static const struct
|
static const struct
|
||||||
{
|
{
|
||||||
|
@ -12,8 +12,8 @@ static const struct
|
||||||
double expected;
|
double expected;
|
||||||
} tests[] =
|
} tests[] =
|
||||||
{
|
{
|
||||||
{ "000"NBSP"000"NBSP"000", "", 0.0 },
|
{ "000"NNBSP"000"NNBSP"000", "", 0.0 },
|
||||||
{ "1"NBSP"000"NBSP"000,5x", "x", 1000000.5 }
|
{ "1"NNBSP"000"NNBSP"000,5x", "x", 1000000.5 }
|
||||||
};
|
};
|
||||||
#define NTESTS (sizeof (tests) / sizeof (tests[0]))
|
#define NTESTS (sizeof (tests) / sizeof (tests[0]))
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#define NBSP "\xc2\xa0"
|
#define NNBSP "\xe2\x80\xaf"
|
||||||
|
|
||||||
static const struct
|
static const struct
|
||||||
{
|
{
|
||||||
|
@ -57,8 +57,8 @@ static const struct
|
||||||
{ "-0e-10", 1, -0.0 },
|
{ "-0e-10", 1, -0.0 },
|
||||||
{ "0e-1000000", 1, 0.0 },
|
{ "0e-1000000", 1, 0.0 },
|
||||||
{ "-0e-1000000", 1, -0.0 },
|
{ "-0e-1000000", 1, -0.0 },
|
||||||
{ "000"NBSP"000"NBSP"000", 1, 0.0 },
|
{ "000"NNBSP"000"NNBSP"000", 1, 0.0 },
|
||||||
{ "-000"NBSP"000"NBSP"000", 1, -0.0 }
|
{ "-000"NNBSP"000"NNBSP"000", 1, -0.0 }
|
||||||
};
|
};
|
||||||
#define NTESTS (sizeof (tests) / sizeof (tests[0]))
|
#define NTESTS (sizeof (tests) / sizeof (tests[0]))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue