diff options
Diffstat (limited to 'src/FbTk/FbString.cc')
-rw-r--r-- | src/FbTk/FbString.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/FbTk/FbString.cc b/src/FbTk/FbString.cc index 3ed1c70..d3f6b81 100644 --- a/src/FbTk/FbString.cc +++ b/src/FbTk/FbString.cc | |||
@@ -231,14 +231,18 @@ bool haveUTF8() { | |||
231 | 231 | ||
232 | }; // end namespace StringUtil | 232 | }; // end namespace StringUtil |
233 | 233 | ||
234 | StringConvertor::StringConvertor(EncodingTarget target): m_iconv((iconv_t)(-1)) { | 234 | StringConvertor::StringConvertor(EncodingTarget target): |
235 | #ifdef HAVE_ICONV | 235 | #ifdef HAVE_ICONV |
236 | m_iconv((iconv_t)(-1)) { | ||
236 | if (target == ToLocaleStr) | 237 | if (target == ToLocaleStr) |
237 | m_destencoding = FbStringUtil::locale_codeset; | 238 | m_destencoding = FbStringUtil::locale_codeset; |
238 | else | 239 | else |
239 | m_destencoding = "UTF-8"; | 240 | m_destencoding = "UTF-8"; |
240 | #endif | ||
241 | } | 241 | } |
242 | #else | ||
243 | m_iconv(-1) {} | ||
244 | #endif | ||
245 | |||
242 | 246 | ||
243 | StringConvertor::~StringConvertor() { | 247 | StringConvertor::~StringConvertor() { |
244 | #ifdef HAVE_ICONV | 248 | #ifdef HAVE_ICONV |