]> source.dussan.org Git - nextcloud-server.git/commitdiff
setlocale test is pointless on Windows
authorThomas Mueller <thomas.mueller@tmit.eu>
Tue, 5 Feb 2013 14:46:55 +0000 (15:46 +0100)
committerThomas Mueller <thomas.mueller@tmit.eu>
Tue, 5 Feb 2013 14:46:55 +0000 (15:46 +0100)
lib/util.php

index c5ef4e3b6f473c906f3eca57daf42a052eeefe8c..4932be2d6cc8a08a68984d035deb62d48c941fa7 100755 (executable)
@@ -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.
         */
        public static function issetlocaleworking() {
+               // setlocale test is pointless on Windows
+               if (OC_Util::runningOnWindows() ) {
+                       return true;
+               }
+
                $result=setlocale(LC_ALL, 'en_US.UTF-8');
                if($result==false) {
                        return(false);