From 26a5380f45441b13c966792b83369fcb97deff19 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Mon, 28 May 2018 12:00:27 +0200 Subject: [PATCH] fix: Always load the UTF-8 locale variant when possible --- classes/LocaleManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/LocaleManager.php b/classes/LocaleManager.php index 3efa390..6cd94b2 100644 --- a/classes/LocaleManager.php +++ b/classes/LocaleManager.php @@ -93,7 +93,7 @@ class LocaleManager public function setLocale(Locale $locale) { putenv('LANG='.$locale); - setlocale(LC_ALL, [$locale, $locale.'.utf8']); + setlocale(LC_ALL, [$locale.'.utf8', $locale]); $this->curLocale = $locale; $this->sessionSegment->set('locale', $locale); }