Merge pull request #1512 from derekschrock/test-mu-common

lib: Use more portable locale en_US.UTF-8
This commit is contained in:
Dirk-Jan C. Binnema 2019-11-17 14:18:34 +02:00 committed by GitHub
commit 2e050fe915
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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. "