projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
avoid skipping test when current locale is C
[m6w6/ext-http]
/
tests
/
urlparser010.phpt
diff --git
a/tests/urlparser010.phpt
b/tests/urlparser010.phpt
index ae63ae7b4050e4eba43b60049a565d9736e0342e..e1675ce409f3985acce0f6af9be3767e4bd884bf 100644
(file)
--- a/
tests/urlparser010.phpt
+++ b/
tests/urlparser010.phpt
@@
-4,7
+4,7
@@
url parser multibyte/locale/topct
<?php
include "skipif.inc";
if (!defined("http\\Url::PARSE_MBLOC") or
<?php
include "skipif.inc";
if (!defined("http\\Url::PARSE_MBLOC") or
- !stristr(setlocale(LC_CTYPE,
NULL
), ".utf")) {
+ !stristr(setlocale(LC_CTYPE,
"C.UTF-8"
), ".utf")) {
die("skip need http\\Url::PARSE_MBLOC support and LC_CTYPE=*.UTF-8");
}
die("skip need http\\Url::PARSE_MBLOC support and LC_CTYPE=*.UTF-8");
}
@@
-12,6
+12,7
@@
if (!defined("http\\Url::PARSE_MBLOC") or
--FILE--
<?php
echo "Test\n";
--FILE--
<?php
echo "Test\n";
+setlocale(LC_CTYPE, "C.UTF-8");
$urls = array(
"http://mike:paßwort@𐌀𐌁𐌂.it/for/€/?by=¢#ø"
$urls = array(
"http://mike:paßwort@𐌀𐌁𐌂.it/for/€/?by=¢#ø"