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
This commit is contained in:
Mike FABIAN 2017-08-10 12:16:29 +02:00
parent 4169825556
commit bd80111ed9
3 changed files with 22 additions and 15 deletions

View File

@ -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):

View 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

View File

@ -160,7 +160,20 @@ static const struct locale_pair tests[] =
}
},
{
"te_IN.UTF-8",
"hr_HR.UTF-8",
{
{
"HRK 1 234 567,89", "Kn 1 234 567,89",
"HRK 1234567,89", "Kn 1234567,89"
},
{
"-HRK 1 234 567,89", "-Kn 1 234 567,89",
"-HRK 1234567,89", "-Kn 1234567,89"
}
}
},
{
"hi_IN.UTF-8",
{
{
"INR12,34,567.89", "\u20b912,34,567.89",
@ -172,19 +185,6 @@ static const struct locale_pair tests[] =
}
}
},
{
"bn_IN.UTF-8",
{
{
"INR 12,345,67.89", "\u20b9 12,345,67.89",
"INR 1234567.89", "\u20b9 1234567.89"
},
{
"-INR 12,345,67.89", "-\u20b9 12,345,67.89",
"-INR 1234567.89", "-\u20b9 1234567.89"
}
}
},
{
"el_GR.UTF-8",
{