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
1 changed files with 1 additions and 1 deletions

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