diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-01-07 15:55:49 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2021-01-07 21:22:41 +0100 |
commit | 287c26bda3f184e90c9b608466e4165a1b0942b6 (patch) | |
tree | 828ff0e74d39bf8b95413d109785fba3bee10375 /lib/private | |
parent | 82947263b90bb350501024da58809e7223fc4087 (diff) | |
download | nextcloud-server-287c26bda3f184e90c9b608466e4165a1b0942b6.tar.gz nextcloud-server-287c26bda3f184e90c9b608466e4165a1b0942b6.zip |
Replace patchwork/utf8 with symfony-polyfill-*
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/legacy/OC_Util.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php index 826d0a31129..4176dfbb229 100644 --- a/lib/private/legacy/OC_Util.php +++ b/lib/private/legacy/OC_Util.php @@ -1293,7 +1293,13 @@ class OC_Util { * @return bool */ public static function isSetLocaleWorking() { - \Patchwork\Utf8\Bootup::initLocale(); + if ('' === basename('§')) { + // Borrowed from \Patchwork\Utf8\Bootup::initLocale + setlocale(LC_ALL, 'C.UTF-8', 'C'); + setlocale(LC_CTYPE, 'en_US.UTF-8', 'fr_FR.UTF-8', 'es_ES.UTF-8', 'de_DE.UTF-8', 'ru_RU.UTF-8', 'pt_BR.UTF-8', 'it_IT.UTF-8', 'ja_JP.UTF-8', 'zh_CN.UTF-8', '0'); + } + + // Check again if ('' === basename('§')) { return false; } |