diff options
author | Darkvater <darkvater@openttd.org> | 2006-03-25 10:15:53 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-03-25 10:15:53 +0000 |
commit | d90be9212b5ed4c77e0d2478bb80e9459ab608dc (patch) | |
tree | 44138d6f6235e9f8773c8b74f0fc7fa62f1f2721 | |
parent | 9b5d8a9921d0f8a0ed5b9dd0f3d796a35c342f8c (diff) | |
download | openttd-d90be9212b5ed4c77e0d2478bb80e9459ab608dc.tar.xz |
(svn r4107) - Fix (r4105): Mixup of string parameters in debug message if iconv_open() failed. Also clarify the message a bit.
-rw-r--r-- | unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } } |