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

options
This commit is contained in:
simonb 2006-05-20 15:23:54 +00:00
parent 70a834f80c
commit 460f57a4ad
2 changed files with 6 additions and 0 deletions

View file

@ -54,6 +54,11 @@ static int iconv_convs[CONVSIZE];
/// 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, "");

View file

@ -66,6 +66,7 @@ using std::string;
namespace FbTk {
void NLSInit(const char *catalog) {
FbStringUtil::init();
I18n *i18n = I18n::instance();
i18n->openCatalog(catalog);
}