From 388079069643c02f217250f99b0fdd5fcf223b2d Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 12 Aug 2005 09:42:33 +0000 Subject: [PATCH] Compilation fix for building on Solaris. --- src/common/common.cpp | 2 ++ 1 file changed, 2 insertions(+) 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");