fix error when running with -i (or similar "don't start Fluxbox class" options
simonb simonb
2 files changed,
6 insertions(+),
0 deletions(-)
M
src/FbTk/FbString.cc
→
src/FbTk/FbString.cc
@@ -54,6 +54,11 @@ #endif // HAVE_ICONV
/// Initialise all of the iconv conversion descriptors void init() { + static bool s_init = false; + if (s_init) + return; + s_init = true; + iconv_convs = new iconv_t[CONVSIZE]; setlocale(LC_CTYPE, "");
M
src/FbTk/I18n.cc
→
src/FbTk/I18n.cc
@@ -66,6 +66,7 @@
namespace FbTk { void NLSInit(const char *catalog) { + FbStringUtil::init(); I18n *i18n = I18n::instance(); i18n->openCatalog(catalog); }