summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/enchant-ispell.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/enchant-ispell.c b/tests/enchant-ispell.c
index f50daee..0e04a30 100644
--- a/tests/enchant-ispell.c
+++ b/tests/enchant-ispell.c
@@ -42,6 +42,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <locale.h>
#include <glib.h>
#include <glib/gstdio.h>
@@ -465,6 +466,8 @@ int main (int argc, char ** argv)
int countLines = 0;
gchar *dictionary = 0; /* -d dictionary */
+ /* Initialize system locale */
+ setlocale(LC_ALL, "");
for (i = 1; i < argc; i++) {
char * arg = argv[i];