Fix loading charsets for iconv

This commit is contained in:
Stas Degteff 2006-04-27 09:25:42 +00:00
parent a4284831c6
commit 1c507bbd23

View File

@ -3022,7 +3022,7 @@ int LoadCharset(const char* imp, const char* exp, int query) {
#ifdef HAS_ICONV #ifdef HAS_ICONV
if( iconv_cd != (iconv_t)(-1) ) if( iconv_cd != (iconv_t)(-1) )
iconv_close(iconv_cd); iconv_close(iconv_cd);
iconv_cd = iconv_open(imp,exp); iconv_cd = iconv_open(exp, imp);
if(iconv_cd != (iconv_t)(-1) ) if(iconv_cd != (iconv_t)(-1) )
LOG.printf("iconv is initialised to convert from %s to %s", imp, exp); LOG.printf("iconv is initialised to convert from %s to %s", imp, exp);
else else