diff options
-rw-r--r-- | tests/test_config.c | 8 |
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 ) { |