2002-10-22 19:39:17 +00:00
|
|
|
|
--TEST--
|
|
|
|
|
Test strtoupper on non-ASCII characters
|
2002-10-23 23:04:43 +00:00
|
|
|
|
--SKIPIF--
|
|
|
|
|
<?php
|
2002-10-29 17:43:08 +00:00
|
|
|
|
if (!setlocale(LC_CTYPE, "de_DE", "de", "german", "ge", "de_DE.ISO8859-1", "ISO8859-1")) {
|
2002-10-23 23:04:43 +00:00
|
|
|
|
die("skip locale needed for this test is not supported on this platform");
|
|
|
|
|
}
|
|
|
|
|
?>
|
2002-10-22 19:39:17 +00:00
|
|
|
|
--FILE--
|
|
|
|
|
<?php
|
2002-10-24 00:49:38 +00:00
|
|
|
|
$chars = "<22><><EFBFBD>";
|
2002-10-22 19:39:17 +00:00
|
|
|
|
// Not sure which is most portable. BSD's answer to
|
|
|
|
|
// this one. A small array based on PHP_OS should
|
|
|
|
|
// cover a majority of systems and makes the problem
|
|
|
|
|
// of locales transparent for the end user.
|
2002-10-29 17:43:08 +00:00
|
|
|
|
setlocale(LC_CTYPE, "de_DE", "de", "german", "ge", "de_DE.ISO8859-1", "ISO8859-1");
|
2002-10-23 23:04:43 +00:00
|
|
|
|
echo strtoupper($chars)."\n";
|
2002-10-22 19:39:17 +00:00
|
|
|
|
?>
|
|
|
|
|
--EXPECT--
|
2002-10-24 00:49:38 +00:00
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD>
|