summaryrefslogtreecommitdiff
path: root/ext/iconv
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2014-12-25 06:20:52 -0500
committerXinchen Hui <laruence@php.net>2014-12-25 06:20:52 -0500
commit80260bcfa667bf25c65264b129f08a35059436a0 (patch)
treed709606e5f9a3ead3cefdb06cbf103bdc0b56e69 /ext/iconv
parentaa394e70ff8cda63ee4382d2488d80936e5122dc (diff)
downloadphp-git-80260bcfa667bf25c65264b129f08a35059436a0.tar.gz
Fixed test
Diffstat (limited to 'ext/iconv')
-rw-r--r--ext/iconv/tests/iconv_basic_001.phpt2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/iconv/tests/iconv_basic_001.phpt b/ext/iconv/tests/iconv_basic_001.phpt
index 6fcb5dbe8a..079eb670e1 100644
--- a/ext/iconv/tests/iconv_basic_001.phpt
+++ b/ext/iconv/tests/iconv_basic_001.phpt
@@ -5,8 +5,10 @@ Rodrigo Prado de Jesus <royopa [at] gmail [dot] com>
--SKIPIF--
<?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?>
<?php if(substr(PHP_OS, 0, 3) == 'WIN' ) {die('skip not for windows');} ?>
+<?php if(setlocale(LC_ALL, "en_US.utf8",) === false) { die('skip en_US.utf8 locales not available'); } ?>
--FILE--
<?php
+setlocale(LC_ALL, "en_US.utf8");
$in_charset = 'UTF-8';
$out_charset = 'ASCII//TRANSLIT';
$string_to_translate = 'Žluťoučký kůň\n';