setlocale test is pointless on Windows
This commit is contained in:
parent
d8084c132e
commit
ac11c842e6
|
@ -519,6 +519,11 @@ class OC_Util {
|
||||||
* Check if the setlocal call doesn't work. This can happen if the right local packages are not available on the server.
|
* Check if the setlocal call doesn't work. This can happen if the right local packages are not available on the server.
|
||||||
*/
|
*/
|
||||||
public static function issetlocaleworking() {
|
public static function issetlocaleworking() {
|
||||||
|
// setlocale test is pointless on Windows
|
||||||
|
if (OC_Util::runningOnWindows() ) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
$result=setlocale(LC_ALL, 'en_US.UTF-8');
|
$result=setlocale(LC_ALL, 'en_US.UTF-8');
|
||||||
if($result==false) {
|
if($result==false) {
|
||||||
return(false);
|
return(false);
|
||||||
|
|
Loading…
Reference in New Issue