]> code.citadel.org Git - citadel.git/blobdiff - webcit/webserver.c
* Mercilessly ripped out all of the gratuitously complex GNU libintl
[citadel.git] / webcit / webserver.c
index 8a81905270c64ce41184deb0071226432ebf9064..04ac7c3a3872604583c42fcb6a54e6710c767fb5 100644 (file)
@@ -382,8 +382,10 @@ int main(int argc, char **argv)
        char tracefile[PATH_MAX];
        char ip_addr[256];
        char *webcitdir = WEBCITDIR;
+#ifdef ENABLE_NLS
        char *locale = NULL;
        char *mo = NULL;
+#endif /* ENABLE_NLS */
 
        /* Parse command line */
 #ifdef HAVE_OPENSSL
@@ -461,6 +463,9 @@ int main(int argc, char **argv)
 
        /* initialize the International Bright Young Thing */
 #ifdef ENABLE_NLS
+
+       initialize_locales();
+
        locale = setlocale(LC_ALL, "");
 
        mo = malloc(strlen(webcitdir) + 20);
@@ -472,9 +477,13 @@ int main(int argc, char **argv)
        lprintf(9, "Text domain: %s\n",
                textdomain("webcit")
        );
+       lprintf(9, "Text domain Charset: %s\n",
+                       bind_textdomain_codeset("webcit","UTF8")
+       );
 #endif
 
        initialize_viewdefs();
+       initialize_axdefs();
 
        /*
         * Set up a place to put thread-specific data.