Fix loading charsets for iconv
This commit is contained in:
parent
a4284831c6
commit
1c507bbd23
@ -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
|
||||||
|
Reference in New Issue
Block a user