aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Font.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/Font.cc')
-rw-r--r--src/FbTk/Font.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/Font.cc b/src/FbTk/Font.cc
index ea0fbde..f06e6f6 100644
--- a/src/FbTk/Font.cc
+++ b/src/FbTk/Font.cc
@@ -136,11 +136,11 @@ Font::Font(const char *name):
136 s_multibyte = true; 136 s_multibyte = true;
137 137
138 // check for utf-8 mode 138 // check for utf-8 mode
139#ifdef CODESET 139#if defined(CODESET) && !defined(_WIN32)
140 char *locale_codeset = nl_langinfo(CODESET); 140 char *locale_codeset = nl_langinfo(CODESET);
141#else // openbsd doesnt have this (yet?) 141#else // openbsd doesnt have this (yet?)
142 char *locale_codeset = 0; 142 char *locale_codeset = 0;
143#endif // CODESET 143#endif // defined(CODESET) && !defined(_WIN32)
144 144
145 if (locale_codeset && strcmp("UTF-8", locale_codeset) == 0) { 145 if (locale_codeset && strcmp("UTF-8", locale_codeset) == 0) {
146 s_utf8mode = true; 146 s_utf8mode = true;