summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Udaltsov <svu@gnome.org>2006-02-04 00:07:16 +0000
committerSergey Udaltsov <svu@gnome.org>2006-02-04 00:07:16 +0000
commit2ae5db7fce614c4cee7a02322fee867c17b36c6d (patch)
tree54ca69a1cd0cc095f7afe3a97913ffce65746e65
parent24b5d0d7d1e118670b69d5387423bf260b12612d (diff)
downloadlibxklavier-2ae5db7fce614c4cee7a02322fee867c17b36c6d.tar.gz
setlocale added, just to show in debug
-rw-r--r--tests/test_config.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_config.c b/tests/test_config.c
index 6d062d0..9cc17be 100644
--- a/tests/test_config.c
+++ b/tests/test_config.c
@@ -8,6 +8,10 @@
#include <libxklavier/xklavier.h>
#include <libxklavier/xklavier_config.h>
+#ifdef HAVE_SETLOCALE
+# include <locale.h>
+#endif
+
#ifdef __STRICT_ANSI__
/* these are functions which are NOT in ANSI C.
Probably we should provide the implementation */
@@ -87,6 +91,10 @@ int main( int argc, char * const argv[] )
exit( 0 );
}
+#ifdef HAVE_SETLOCALE
+ setlocale( LC_ALL, "" );
+#endif
+
dpy = XOpenDisplay( NULL );
if ( dpy == NULL )
{