Written by Bruno Haible and Simon Josefsson.
This program is free software; you can redistribute it and/or modify
Written by Bruno Haible and Simon Josefsson.
This program is free software; you can redistribute it and/or modify
/* Set to the initial state. */
iconv (cd, NULL, NULL, NULL, NULL);
# endif
/* Set to the initial state. */
iconv (cd, NULL, NULL, NULL, NULL);
# endif
/* Irix iconv() inserts a NUL byte if it cannot convert.
NetBSD iconv() inserts a question mark if it cannot convert.
Only GNU libiconv and GNU libc are known to prefer to fail rather
/* Irix iconv() inserts a NUL byte if it cannot convert.
NetBSD iconv() inserts a question mark if it cannot convert.
Only GNU libiconv and GNU libc are known to prefer to fail rather
/* Return to the initial state. */
iconv (cd, NULL, NULL, NULL, NULL);
# endif
/* Return to the initial state. */
iconv (cd, NULL, NULL, NULL, NULL);
# endif
/* Irix iconv() inserts a NUL byte if it cannot convert.
NetBSD iconv() inserts a question mark if it cannot convert.
Only GNU libiconv and GNU libc are known to prefer to fail rather
/* Irix iconv() inserts a NUL byte if it cannot convert.
NetBSD iconv() inserts a question mark if it cannot convert.
Only GNU libiconv and GNU libc are known to prefer to fail rather
{
size_t res = iconv (cd, NULL, NULL, &outptr, &outsize);
{
size_t res = iconv (cd, NULL, NULL, &outptr, &outsize);
to a trailing NUL byte in the output. But not for UTF-7. So that this
function is usable for UTF-7, we have to exclude the NUL byte from the
conversion and add it by hand afterwards. */
to a trailing NUL byte in the output. But not for UTF-7. So that this
function is usable for UTF-7, we have to exclude the NUL byte from the
conversion and add it by hand afterwards. */
/* Irix iconv() inserts a NUL byte if it cannot convert.
NetBSD iconv() inserts a question mark if it cannot convert.
Only GNU libiconv and GNU libc are known to prefer to fail rather
/* Irix iconv() inserts a NUL byte if it cannot convert.
NetBSD iconv() inserts a question mark if it cannot convert.
Only GNU libiconv and GNU libc are known to prefer to fail rather
(result != NULL ? realloc (result, length + 1) : malloc (length + 1));
if (final_result == NULL)
{
(result != NULL ? realloc (result, length + 1) : malloc (length + 1));
if (final_result == NULL)
{
/* Set to the initial state. */
iconv (cd, NULL, NULL, NULL, NULL);
# endif
/* Set to the initial state. */
iconv (cd, NULL, NULL, NULL, NULL);
# endif
if (c_strcasecmp (from_codeset, "EUC-KR") == 0
|| c_strcasecmp (to_codeset, "EUC-KR") == 0)
{
if (c_strcasecmp (from_codeset, "EUC-KR") == 0
|| c_strcasecmp (to_codeset, "EUC-KR") == 0)
{