* iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.

* iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
This commit is contained in:
Ulrich Drepper 2008-05-15 01:57:05 +00:00
parent 5deca9bbff
commit a754f018b8
3 changed files with 10 additions and 1 deletions

View file

@ -1,5 +1,11 @@
2008-05-14 Joseph Myers <joseph@codesourcery.com>
* iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
2008-05-14 Ulrich Drepper <drepper@redhat.com> 2008-05-14 Ulrich Drepper <drepper@redhat.com>
* iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
[BZ #6461] [BZ #6461]
* iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal): * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
Add missing braces. Add missing braces.

View file

@ -73,6 +73,9 @@ tests += bug-iconv3
endif endif
test-srcs := tst-table-from tst-table-to test-srcs := tst-table-from tst-table-to
bug-iconv6-ENV = LOCPATH=$(common-objpfx)localedata
tst-iconv7-ENV = LOCPATH=$(common-objpfx)localedata
endif endif
# No code here is in libc.so. # No code here is in libc.so.

View file

@ -13,7 +13,7 @@ static const char testbuf[] = {
static int static int
do_test (void) do_test (void)
{ {
setlocale (LC_ALL, "en_US.UTF-8"); setlocale (LC_ALL, "de_DE.UTF-8");
iconv_t ic = iconv_open ("ISO-2022-JP//TRANSLIT", "UTF-8"); iconv_t ic = iconv_open ("ISO-2022-JP//TRANSLIT", "UTF-8");
if (ic == (iconv_t) -1) if (ic == (iconv_t) -1)
{ {