[gtk+] Run accessibility tests in en_US.utf8



commit e1f38f2c2268be258c909969e348f52af648f65f
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jan 14 13:11:42 2014 -0500

    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.

 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 fb9a689..4cfd518 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;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]