Browse Source

Force setlocale to fix issue with some tests

Thomas Rabaix 11 năm trước cách đây
mục cha
commit
db85522c3c
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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')) {