summaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/FbString.cc5
-rw-r--r--src/FbTk/I18n.cc1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/FbTk/FbString.cc b/src/FbTk/FbString.cc
index 6c5ffbb..9a575bf 100644
--- a/src/FbTk/FbString.cc
+++ b/src/FbTk/FbString.cc
@@ -54,6 +54,11 @@ static int iconv_convs[CONVSIZE];
54 54
55/// Initialise all of the iconv conversion descriptors 55/// Initialise all of the iconv conversion descriptors
56void init() { 56void init() {
57 static bool s_init = false;
58 if (s_init)
59 return;
60 s_init = true;
61
57 iconv_convs = new iconv_t[CONVSIZE]; 62 iconv_convs = new iconv_t[CONVSIZE];
58 63
59 setlocale(LC_CTYPE, ""); 64 setlocale(LC_CTYPE, "");
diff --git a/src/FbTk/I18n.cc b/src/FbTk/I18n.cc
index 62fda06..43af752 100644
--- a/src/FbTk/I18n.cc
+++ b/src/FbTk/I18n.cc
@@ -66,6 +66,7 @@ using std::string;
66namespace FbTk { 66namespace FbTk {
67 67
68void NLSInit(const char *catalog) { 68void NLSInit(const char *catalog) {
69 FbStringUtil::init();
69 I18n *i18n = I18n::instance(); 70 I18n *i18n = I18n::instance();
70 i18n->openCatalog(catalog); 71 i18n->openCatalog(catalog);
71} 72}