[xiph-commits] r13626 - trunk/ezstream/src

moritz at svn.xiph.org moritz at svn.xiph.org
Sat Aug 25 07:37:42 PDT 2007


Author: moritz
Date: 2007-08-25 07:37:42 -0700 (Sat, 25 Aug 2007)
New Revision: 13626

Modified:
   trunk/ezstream/src/util.c
Log:
Need to consider converting from an unknown/unsupported codeset as well.


Modified: trunk/ezstream/src/util.c
===================================================================
--- trunk/ezstream/src/util.c	2007-08-25 14:37:22 UTC (rev 13625)
+++ trunk/ezstream/src/util.c	2007-08-25 14:37:42 UTC (rev 13626)
@@ -318,7 +318,8 @@
 	}
 
 	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);
 		printf("%s: iconv_open(): %s\n", __progname, strerror(errno));
 		return (NULL);



More information about the commits mailing list