]> saetta.ns0.it Git - zakform/tests/commitdiff
Added translation support to cgi test.
authorAndrea Zagli <azagli@libero.it>
Sun, 15 May 2016 18:37:24 +0000 (20:37 +0200)
committerAndrea Zagli <azagli@libero.it>
Sun, 15 May 2016 18:37:24 +0000 (20:37 +0200)
src/cgi_ini.c

index 8c30eda0da39f2987f1bf959be70b90e550e85f8..0ab6bbe379caae54c881098f905e087de6eda4ec 100644 (file)
@@ -21,6 +21,7 @@
 #endif
 
 #include <unistd.h>
+#include <locale.h>
 
 #include <libzakcgi/libzakcgi.h>
 #include <libzakform/libzakform.h>
@@ -40,6 +41,8 @@ main (int argc, char *argv[])
 
        ZakFormIniProvider *provider;
 
+       setlocale (LC_ALL, "");
+
        zakcgimain = zak_cgi_main_new ();
 
        str = g_string_new ("<!DOCTYPE html>\n"