php-src/ext/standard/tests/strings/strtoupper.phpt

24 lines
685 B
Plaintext
Raw Normal View History

2002-10-22 19:39:17 +00:00
--TEST--
Test strtoupper on non-ASCII characters
--SKIPIF--
<?php
if (!setlocale(LC_CTYPE, "de_DE", "de", "german", "ge", "de_DE.ISO8859-1", "ISO8859-1")) {
die("skip locale needed for this test is not supported on this platform");
}
?>
2005-08-17 14:01:06 +00:00
--INI--
unicode.script_encoding=ISO-8859-1
unicode.output_encoding=ISO-8859-1
2002-10-22 19:39:17 +00:00
--FILE--
<?php
$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.
setlocale(LC_CTYPE, "de_DE", "de", "german", "ge", "de_DE.ISO8859-1", "ISO8859-1");
echo strtoupper($chars)."\n";
2002-10-22 19:39:17 +00:00
?>
--EXPECT--
<EFBFBD><EFBFBD><EFBFBD>