浏览代码

Force setlocale to fix issue with some tests

Thomas Rabaix 11 年之前
父节点
当前提交
db85522c3c
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Tests/tests/bootstrap.php

+ 3 - 0
Tests/tests/bootstrap.php

@@ -9,6 +9,9 @@
  * file that was distributed with this source code.
  */
 
+// fix encoding issue while running text on different host with different locale configuration
+setlocale(LC_ALL, "en_US.UTF-8");
+
 if (file_exists($file = __DIR__.'/autoload.php')) {
     require_once $file;
 } elseif (file_exists($file = __DIR__.'/autoload.php.dist')) {