diff --git a/src/common/common.cpp b/src/common/common.cpp index 30e0c3c4f..79bc34d3c 100644 --- a/src/common/common.cpp +++ b/src/common/common.cpp @@ -465,6 +465,8 @@ get_local_charset() { #if defined(COMP_MINGW) || defined(COMP_MSC) lc_charset = "CP" + to_string(GetACP()); #elif defined(SYS_SOLARIS) + int i; + lc_charset = nl_langinfo(CODESET); if (parse_int(lc_charset, i)) lc_charset = string("ISO") + lc_charset + string("-US");