[gnome-software: 10/11] dummy: Specify UTF-8 encoding in test locale
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 10/11] dummy: Specify UTF-8 encoding in test locale
- Date: Thu, 10 Jun 2021 12:20:06 +0000 (UTC)
commit 36d9b7a7137402ed6c9f6a2fe95e3086887f453c
Author: Philip Withnall <pwithnall endlessos org>
Date: Thu Jun 10 11:51:52 2021 +0100
dummy: Specify UTF-8 encoding in test locale
This removes the possibility of the wrong encoding accidentally being
chosen to due some odd system configuration.
This is not a problem that’s been spotted in practice, but seems
sensible to preempt. See
https://gitlab.gnome.org/GNOME/gnome-software/-/merge_requests/783#note_1138650.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
plugins/dummy/gs-self-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/dummy/gs-self-test.c b/plugins/dummy/gs-self-test.c
index 7dba07053..7e6225620 100644
--- a/plugins/dummy/gs-self-test.c
+++ b/plugins/dummy/gs-self-test.c
@@ -755,7 +755,7 @@ main (int argc, char **argv)
g_setenv ("GS_XMLB_VERBOSE", "1", TRUE);
/* set all the things required as a dummy test harness */
- setlocale (LC_MESSAGES, "en_GB");
+ setlocale (LC_MESSAGES, "en_GB.UTF-8");
g_setenv ("GS_SELF_TEST_DUMMY_ENABLE", "1", TRUE);
g_setenv ("GS_SELF_TEST_PROVENANCE_SOURCES", "london*,boston", TRUE);
g_setenv ("GS_SELF_TEST_PROVENANCE_LICENSE_SOURCES", "london*,boston", TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]