From: Tim Düsterhus Date: Thu, 29 Nov 2018 16:53:28 +0000 (+0100) Subject: Disable Unicode support in scssphp X-Git-Tag: 5.2.0_Alpha_1~480^2^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=58a688d5e01663b9fe726925287e4853429ca2cd;p=GitHub%2FWoltLab%2FWCF.git Disable Unicode support in scssphp see https://github.com/WoltLab/WCF/pull/2736#issuecomment-416084079 --- diff --git a/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php b/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php index 67151359fd..fba86922e9 100644 --- a/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php +++ b/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php @@ -52,6 +52,9 @@ class StyleCompiler extends SingletonFactory { protected function init() { require_once(WCF_DIR.'lib/system/style/scssphp/scss.inc.php'); $this->compiler = new Compiler(); + // Disable Unicode support because of its horrible performance (7x slowdown) + // https://github.com/WoltLab/WCF/pull/2736#issuecomment-416084079 + $this->compiler->setEncoding('iso8859-1'); $this->compiler->setImportPaths([WCF_DIR]); }