Fix linux compile (not tested).

This commit is contained in:
Steve Checkoway
2006-09-17 03:56:28 +00:00
parent 6cd7373a95
commit a5ecf51f8a
+2 -2
View File
@@ -47,7 +47,7 @@ static bool ConvertFromCharset( RString &sText, const char *szCharset )
iconv_t converter = iconv_open( "UTF-8", szCharset );
if( converter == (iconv_t) -1 )
{
LOG->MapLog( ssprintf("conv %s", charset), "iconv_open(%s): %s", charset, strerror(errno) );
LOG->MapLog( ssprintf("conv %s", szCharset), "iconv_open(%s): %s", szCharset, strerror(errno) );
return false;
}
@@ -73,7 +73,7 @@ static bool ConvertFromCharset( RString &sText, const char *szCharset )
if( iInLeft != 0 )
{
LOG->Warn( "iconv(UTF-8,%s) for \"%s\": whole buffer not converted (%i left)", charset, sText.c_str(), int(iInLeft) );
LOG->Warn( "iconv(UTF-8,%s) for \"%s\": whole buffer not converted (%i left)", szCharset, sText.c_str(), int(iInLeft) );
return false;
}