diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-01-14 13:11:42 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-01-14 13:15:19 -0500 |
commit | e1f38f2c2268be258c909969e348f52af648f65f (patch) | |
tree | 4a91e568815636e0a15c91685c53d05dc0b7dff0 /testsuite | |
parent | bc3867eb8512406223e2291168b9c2042b7350cc (diff) | |
download | gtk+-e1f38f2c2268be258c909969e348f52af648f65f.tar.gz |
Run accessibility tests in en_US.utf8
Previously, we were just using the C locale, which breaks
some of our fancy utf8 output for checkmarks and so on.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/a11y/accessibility-dump.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/a11y/accessibility-dump.c b/testsuite/a11y/accessibility-dump.c index fb9a689686..4cfd518375 100644 --- a/testsuite/a11y/accessibility-dump.c +++ b/testsuite/a11y/accessibility-dump.c @@ -20,6 +20,7 @@ #include "config.h" +#include <locale.h> #include <string.h> #include <glib/gstdio.h> #include <gtk/gtk.h> @@ -874,6 +875,12 @@ parse_command_line (int *argc, char ***argv) gtk_test_init (argc, argv); + /* gtk_test_init does not call setlocale(), so do it ourselves, + * since running in the C locale breaks some our fancy + * utf8 output. + */ + setlocale (LC_ALL, "en_US.utf8"); + return TRUE; } |