summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2019-04-12 06:08:28 +0200
committerBenjamin Otte <otte@redhat.com>2019-04-13 01:40:10 +0200
commitc78ba420517fd660c525863ebe35de56d6c90893 (patch)
tree884300dc14654e079e057a8d048b5573a769650f
parent427d216081ea0fd9e2045ec2e3aaed4c5ba56ca6 (diff)
downloadgtk+-c78ba420517fd660c525863ebe35de56d6c90893.tar.gz
testutils: Run in UTF8 locale
before, code was using the "C" locale, but that one uses ASCII. Instead, run in the "C.utf8" locale. Nobody expects code to not support UTF8 and no end user runs their machine in an ASCII setup, so it makes no sense to default to that.
-rw-r--r--gtk/gtktestutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktestutils.c b/gtk/gtktestutils.c
index a105a7b27f..9fe37861a8 100644
--- a/gtk/gtktestutils.c
+++ b/gtk/gtktestutils.c
@@ -77,7 +77,7 @@ gtk_test_init (int *argcp,
{
g_test_init (argcp, argvp, NULL);
gtk_disable_setlocale();
- setlocale (LC_ALL, "C");
+ setlocale (LC_ALL, "en_US.UTF-8");
g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
/* XSendEvent() doesn't work yet on XI2 events.