Compilation fix for building on Solaris.

This commit is contained in:
Moritz Bunkus 2005-08-12 09:42:33 +00:00
parent 4105d505f6
commit 3880790696

View File

@ -465,6 +465,8 @@ get_local_charset() {
#if defined(COMP_MINGW) || defined(COMP_MSC) #if defined(COMP_MINGW) || defined(COMP_MSC)
lc_charset = "CP" + to_string(GetACP()); lc_charset = "CP" + to_string(GetACP());
#elif defined(SYS_SOLARIS) #elif defined(SYS_SOLARIS)
int i;
lc_charset = nl_langinfo(CODESET); lc_charset = nl_langinfo(CODESET);
if (parse_int(lc_charset, i)) if (parse_int(lc_charset, i))
lc_charset = string("ISO") + lc_charset + string("-US"); lc_charset = string("ISO") + lc_charset + string("-US");