aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/FbString.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/FbString.cc')
-rw-r--r--src/FbTk/FbString.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/FbString.cc b/src/FbTk/FbString.cc
index d62f5fa..5577f32 100644
--- a/src/FbTk/FbString.cc
+++ b/src/FbTk/FbString.cc
@@ -169,12 +169,12 @@ void init() {
169 setlocale(LC_CTYPE, ""); 169 setlocale(LC_CTYPE, "");
170 170
171#ifdef HAVE_ICONV 171#ifdef HAVE_ICONV
172#ifdef CODESET 172#if defined(CODESET) && !defined(_WIN32)
173 s_locale_codeset = nl_langinfo(CODESET); 173 s_locale_codeset = nl_langinfo(CODESET);
174#else // openbsd doesnt have this (yet?) 174#else // openbsd doesnt have this (yet?)
175 std::string locale = setlocale(LC_CTYPE, NULL); 175 std::string locale = setlocale(LC_CTYPE, NULL);
176 size_t pos = locale.find('.'); 176 size_t pos = locale.find('.');
177 if (pos != string::npos) 177 if (pos != std::string::npos)
178 s_locale_codeset = locale.substr(pos+1); 178 s_locale_codeset = locale.substr(pos+1);
179#endif // CODESET 179#endif // CODESET
180 180