fix error when running with -i (or similar "don't start Fluxbox class"
options
This commit is contained in:
parent
70a834f80c
commit
460f57a4ad
2 changed files with 6 additions and 0 deletions
|
@ -54,6 +54,11 @@ static int iconv_convs[CONVSIZE];
|
||||||
|
|
||||||
/// Initialise all of the iconv conversion descriptors
|
/// Initialise all of the iconv conversion descriptors
|
||||||
void init() {
|
void init() {
|
||||||
|
static bool s_init = false;
|
||||||
|
if (s_init)
|
||||||
|
return;
|
||||||
|
s_init = true;
|
||||||
|
|
||||||
iconv_convs = new iconv_t[CONVSIZE];
|
iconv_convs = new iconv_t[CONVSIZE];
|
||||||
|
|
||||||
setlocale(LC_CTYPE, "");
|
setlocale(LC_CTYPE, "");
|
||||||
|
|
|
@ -66,6 +66,7 @@ using std::string;
|
||||||
namespace FbTk {
|
namespace FbTk {
|
||||||
|
|
||||||
void NLSInit(const char *catalog) {
|
void NLSInit(const char *catalog) {
|
||||||
|
FbStringUtil::init();
|
||||||
I18n *i18n = I18n::instance();
|
I18n *i18n = I18n::instance();
|
||||||
i18n->openCatalog(catalog);
|
i18n->openCatalog(catalog);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue