diff options
author | Dom Lachowicz <domlachowicz@gmail.com> | 2008-11-22 16:19:41 +0000 |
---|---|---|
committer | Dom Lachowicz <domlachowicz@gmail.com> | 2008-11-22 16:19:41 +0000 |
commit | 2f157306e706ab95f90d137f44efe483818b53ba (patch) | |
tree | 801d2b0e92ffaabb2cbbe9ae37f23736a92a550c | |
parent | f488168b952b9d97a23df98f9d78d89823ce63a3 (diff) | |
download | enchant-2f157306e706ab95f90d137f44efe483818b53ba.tar.gz |
Bug 11792 - enchant-ispell does not set up locale properly
From Harri Pitk�nen <hatapitk@iki.fi>
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@25100 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r-- | tests/enchant-ispell.c | 3 |
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]; |