fix: Always load the UTF-8 locale variant when possible

This commit is contained in:
Pierre Rudloff 2018-05-28 12:00:27 +02:00
parent d398f9101e
commit 26a5380f45

View file

@ -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);
}