[gtk/test-locale-change] testutils: Run in UTF8 locale
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/test-locale-change] testutils: Run in UTF8 locale
- Date: Fri, 12 Apr 2019 04:12:17 +0000 (UTC)
commit 6bab87e564cbaac94ce9b744938eff65e4ad89d3
Author: Benjamin Otte <otte redhat com>
Date: Fri Apr 12 06:08:28 2019 +0200
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.
gtk/gtktestutils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtktestutils.c b/gtk/gtktestutils.c
index a105a7b27f..7fb2b9ef9a 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, "C.utf8");
g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
/* XSendEvent() doesn't work yet on XI2 events.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]