From d90be9212b5ed4c77e0d2478bb80e9459ab608dc Mon Sep 17 00:00:00 2001 From: Darkvater Date: Sat, 25 Mar 2006 10:15:53 +0000 Subject: [PATCH] (svn r4107) - Fix (r4105): Mixup of string parameters in debug message if iconv_open() failed. Also clarify the message a bit. --- unix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unix.c b/unix.c index ffb65cc771..252777637a 100644 --- a/unix.c +++ b/unix.c @@ -675,7 +675,7 @@ const char *OTTD2FS(const char *name) 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 *FS2OTTD(const char *name) 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; } }