summaryrefslogtreecommitdiff
path: root/navit/main.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-02-06 12:32:09 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-02-06 12:32:09 +0000
commit6917b494cad8c70b33f6567ab57a7053775da21f (patch)
tree395c83b3aecb0e9dffa6a0c90f3af831a6691206 /navit/main.c
parentc42136ce94c221565c1f56a8e891f4240fe65eda (diff)
downloadnavit-6917b494cad8c70b33f6567ab57a7053775da21f.tar.gz
Fix:Core:Fixed FORCE_LOCALE
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2020 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/main.c')
-rw-r--r--navit/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/navit/main.c b/navit/main.c
index 25e4de8af..cdf71fda3 100644
--- a/navit/main.c
+++ b/navit/main.c
@@ -289,7 +289,8 @@ main_init_nls(void)
{
#ifdef ENABLE_NLS
#ifdef FORCE_LOCALE
-#define STRINGIFY(x) #x
+#define STRINGIFY2(x) #x
+#define STRINGIFY(x) STRINGIFY2(x)
setlocale(LC_MESSAGES,STRINGIFY(FORCE_LOCALE));
#endif
bindtextdomain(PACKAGE, getenv("NAVIT_LOCALEDIR"));