Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[BZ #2569]
2006-04-25 Ulrich Drepper <drepper@redhat.com> [BZ #2569] * iconv/gconv_db.c (__gconv_release_step): Fix condition of assert call. * iconvdata/Makefile (tests): Add tst-iconv6. * iconvdata/tst-iconv6.c: New file.
- Loading branch information
Ulrich Drepper
committed
Apr 25, 2006
1 parent
bdefc84
commit 74ed115
Showing
4 changed files
with
47 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* BZ #2569 */ | ||
|
||
#include <iconv.h> | ||
#include <stdio.h> | ||
|
||
static int | ||
do_test (void) | ||
{ | ||
iconv_t cd0 = iconv_open ("ISO-8859-7", "UTF-16LE"); | ||
if (cd0 == (iconv_t) -1) | ||
{ | ||
puts ("first iconv_open failed"); | ||
return 1; | ||
} | ||
iconv_t cd1 = iconv_open ("ISO-8859-7", "UTF-16LE"); | ||
if (cd1 == (iconv_t) -1) | ||
{ | ||
puts ("second iconv_open failed"); | ||
return 1; | ||
} | ||
if (iconv_close (cd0) != 0) | ||
{ | ||
puts ("first iconv_close failed"); | ||
return 1; | ||
} | ||
if (iconv_close (cd1) != 0) | ||
{ | ||
puts ("second iconv_close failed"); | ||
return 1; | ||
} | ||
return 0; | ||
} | ||
|
||
#define TEST_FUNCTION do_test () | ||
#include "../test-skeleton.c" |