(svn r4107) - Fix (r4105): Mixup of string parameters in debug message if iconv_open() failed. Also clarify the message a bit.
authorDarkvater
Sat, 25 Mar 2006 10:15:53 +0000
changeset 3330 9059c6bd735d
parent 3329 9885789ecaf7
child 3331 da6bbabbb6cc
(svn r4107) - Fix (r4105): Mixup of string parameters in debug message if iconv_open() failed. Also clarify the message a bit.
unix.c
--- a/unix.c	Sat Mar 25 09:22:10 2006 +0000
+++ b/unix.c	Sat Mar 25 10:15:53 2006 +0000
@@ -675,7 +675,7 @@
 		const char *env = GetLocalCode();
 		convd = iconv_open(env, INTERNALCODE);
 		if (convd == (iconv_t)(-1)) {
-			DEBUG(misc, 0) ("[iconv] Cannot convert from codeset '%s' to '%s'", INTERNALCODE, env);
+			DEBUG(misc, 0) ("[iconv] Conversion from codeset '%s' to '%s' unsupported", INTERNALCODE, env);
 			return name;
 		}
 	}
@@ -694,7 +694,7 @@
 		const char *env = GetLocalCode();
 		convd = iconv_open(INTERNALCODE, env);
 		if (convd == (iconv_t)(-1)) {
-			DEBUG(misc, 0) ("[iconv] Cannot convert from codeset '%s' to '%s'", INTERNALCODE, env);
+			DEBUG(misc, 0) ("[iconv] Conversion from codeset '%s' to '%s' unsupported", env, INTERNALCODE);
 			return name;
 		}
 	}