From 7d439928f56edac6825742c4ed6c5c6d6f93df3a Mon Sep 17 00:00:00 2001 From: Derek Schrock Date: Sat, 16 Nov 2019 23:01:18 -0500 Subject: [PATCH] lib: Use more portable locale en_US.UTF-8 On some systems (FreeBSD) en_US.utf8 doesn't exist. Use a portable locale en_US.UTF-8. --- lib/tests/test-mu-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tests/test-mu-common.c b/lib/tests/test-mu-common.c index 9f23b928..5cabb768 100644 --- a/lib/tests/test-mu-common.c +++ b/lib/tests/test-mu-common.c @@ -73,8 +73,8 @@ set_tz (const char* tz) gboolean set_en_us_utf8_locale (void) { - setenv ("LC_ALL", "en_US.utf8", 1); - setlocale (LC_ALL, "en_US.utf8"); + setenv ("LC_ALL", "en_US.UTF-8", 1); + setlocale (LC_ALL, "en_US.UTF-8"); if (strcmp (nl_langinfo(CODESET), "UTF-8") != 0) { g_print ("Note: Unit tests require the en_US.utf8 locale. "