1
0
mirror of https://gitlab.xiph.org/xiph/ezstream.git synced 2024-11-03 04:17:18 -05:00

Need to consider converting from an unknown/unsupported codeset as well.

git-svn-id: https://svn.xiph.org/trunk/ezstream@13626 0101bb08-14d6-0310-b084-bc0e0c8e3800
This commit is contained in:
moritz 2007-08-25 14:37:42 +00:00
parent 35c07b9516
commit cf6761f437

View File

@ -318,7 +318,8 @@ iconvert(const char *in_str, const char *from, const char *to, int mode)
} }
if ((cd = iconv_open(tocode, from)) == (iconv_t)-1 && if ((cd = iconv_open(tocode, from)) == (iconv_t)-1 &&
(cd = iconv_open("", from)) == (iconv_t)-1) { (cd = iconv_open("", from)) == (iconv_t)-1 &&
(cd = iconv_open(tocode, "")) == (iconv_t)-1) {
xfree(tocode); xfree(tocode);
printf("%s: iconv_open(): %s\n", __progname, strerror(errno)); printf("%s: iconv_open(): %s\n", __progname, strerror(errno));
return (NULL); return (NULL);