Skip to content
Snippets Groups Projects
Commit e5ab313f authored by Andreas Gohr's avatar Andreas Gohr
Browse files

check locale setting in do=check FS#2445

parent 3008b667
No related branches found
No related tags found
No related merge requests found
......@@ -176,6 +176,16 @@ function check(){
msg('mb_string extension not available - PHP only replacements will be used',0);
}
$loc = setlocale(LC_ALL, 0);
if(!$loc){
msg('No valid locale is set for your PHP setup. You should fix this',-1);
}elseif(stripos($loc,'utf') === false){
msg('Your locale <code>'.hsc($loc).'</code> seems not to be a UTF-8 locale, you should fix this if you encounter problems.',0);
}else{
msg('Valid locale '.hsc($loc).' found.', 1);
}
if($conf['allowdebug']){
msg('Debugging support is enabled. If you don\'t need it you should set $conf[\'allowdebug\'] = 0',-1);
}else{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment