Bladeren bron

Force setlocale to fix issue with some tests

Thomas Rabaix 11 jaren geleden
bovenliggende
commit
db85522c3c
1 gewijzigde bestanden met toevoegingen van 3 en 0 verwijderingen
  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.
  * 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')) {
 if (file_exists($file = __DIR__.'/autoload.php')) {
     require_once $file;
     require_once $file;
 } elseif (file_exists($file = __DIR__.'/autoload.php.dist')) {
 } elseif (file_exists($file = __DIR__.'/autoload.php.dist')) {