diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-02-08 17:49:54 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-02-08 17:49:54 +0100 |
commit | 232a98524cdc9c97ad1c5a72ec0021e4b036a69d (patch) | |
tree | 92599b5c1f4d0cc707ee3293008dee3c76022fb8 /lib/util.php | |
parent | 96042f1e5b343ed75f59fc2997b7e54c07b557da (diff) | |
download | nextcloud-server-232a98524cdc9c97ad1c5a72ec0021e4b036a69d.tar.gz nextcloud-server-232a98524cdc9c97ad1c5a72ec0021e4b036a69d.zip |
some systems use en_US.UTF8 instead of en_US.UTF-8
Diffstat (limited to 'lib/util.php')
-rwxr-xr-x | lib/util.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/util.php b/lib/util.php index 9ce974619bc..27aea6996da 100755 --- a/lib/util.php +++ b/lib/util.php @@ -526,12 +526,11 @@ class OC_Util { return true; } - $result=setlocale(LC_ALL, 'en_US.UTF-8'); - if($result==false) { - return(false); - }else{ - return(true); - } + $result = setlocale(LC_ALL, 'en_US.UTF-8', 'en_US.UTF8'); + if($result == false) { + return false; + } + return true; } /** |