mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
![]() Under some linux versions, and depending of the configured locale categories, it's possible to get a current locally which length > 255 when calling to setlocale(LC_ALL, 0). Later, if that long locale is tried to be restored, there is a "setlocale(): Specified locale name is too long" warning error. When that happens we need to split the long locale into individual chunks and set all the (six) locale categories supported one by one. Covered with tests, note that, in practice, this only happens with linux because it supports 12 locale categories @ OS level. Both BSD (6) and Windows (5) hardly can reach the limit. No matter of that, the tests have been designed to ensure that they pass on all OSs, just the new code only will be executed on linux. |
||
---|---|---|
.. | ||
amd | ||
classes | ||
db | ||
lang/en | ||
templates | ||
tests | ||
index.php | ||
lib.php | ||
settings.php | ||
styles.css | ||
version.php |