소스 검색

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')) {