summaryrefslogtreecommitdiff
path: root/src/FbTk/FbString.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/FbString.cc')
-rw-r--r--src/FbTk/FbString.cc5
1 files changed, 5 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, "");