all repos — fluxbox @ 460f57a4ad63001e5ae2b3f9df763ba27aec5727

custom fork of the fluxbox windowmanager

fix error when running with -i (or similar "don't start Fluxbox class" 
options
simonb simonb
commit

460f57a4ad63001e5ae2b3f9df763ba27aec5727

parent

70a834f80c1bfba456a20641138a5cfbe1fe4797

2 files changed, 6 insertions(+), 0 deletions(-)

jump to
M src/FbTk/FbString.ccsrc/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.ccsrc/FbTk/I18n.cc

@@ -66,6 +66,7 @@

namespace FbTk { void NLSInit(const char *catalog) { + FbStringUtil::init(); I18n *i18n = I18n::instance(); i18n->openCatalog(catalog); }