mirror of
https://github.com/rlanvin/php-rrule.git
synced 2025-02-26 15:54:14 +01:00
Fix utf8 C locale detection wihout intl
This commit is contained in:
parent
747bc473d9
commit
4b19d8ef60
@ -2102,7 +2102,7 @@ class RRule implements RRuleInterface
|
|||||||
$default_opt['locale'] = \Locale::getDefault();
|
$default_opt['locale'] = \Locale::getDefault();
|
||||||
} else {
|
} else {
|
||||||
$default_opt['locale'] = setlocale(LC_CTYPE, 0);
|
$default_opt['locale'] = setlocale(LC_CTYPE, 0);
|
||||||
if ($default_opt['locale'] == 'C') {
|
if (!$default_opt['locale'] || $default_opt['locale'][0] == 'C') {
|
||||||
$default_opt['locale'] = 'en';
|
$default_opt['locale'] = 'en';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user