fix: Always load the UTF-8 locale variant when possible
This commit is contained in:
parent
d398f9101e
commit
26a5380f45
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue