tony2001                Mon Apr  7 12:14:46 2008 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/sapi/cli/tests     bug44564.phpt 
  Log:
  fix test
  
  
http://cvs.php.net/viewvc.cgi/php-src/sapi/cli/tests/bug44564.phpt?r1=1.1.2.1&r2=1.1.2.2&diff_format=u
Index: php-src/sapi/cli/tests/bug44564.phpt
diff -u php-src/sapi/cli/tests/bug44564.phpt:1.1.2.1 
php-src/sapi/cli/tests/bug44564.phpt:1.1.2.2
--- php-src/sapi/cli/tests/bug44564.phpt:1.1.2.1        Sun Mar 30 12:17:39 2008
+++ php-src/sapi/cli/tests/bug44564.phpt        Mon Apr  7 12:14:46 2008
@@ -1,8 +1,14 @@
 --TEST--
 Bug #44564 (escapeshellarg removes UTF-8 multi-byte characters)
+--SKIPIF--
+<?php
+if (false == setlocale(LC_CTYPE, "UTF8", "en_US.UTF-8")) {
+       die("skip setlocale() failed\n");
+}
+?>
 --FILE--
 <?php
-
+setlocale(LC_CTYPE, "UTF8", "en_US.UTF-8");
 var_dump(escapeshellcmd('f{o}<€>'));
 var_dump(escapeshellarg('f~|;*Þ?'));
 var_dump(escapeshellcmd('?€®đæ?'));



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to