php-src/ext/standard/tests/strings/strtoupper.phpt
2002-10-24 00:49:38 +00:00

21 lines
543 B
PHP

--TEST--
Test strtoupper on non-ASCII characters
--SKIPIF--
<?php
if (!setlocale(LC_CTYPE, "de_DE", "de", "german", "ge")) {
die("skip locale needed for this test is not supported on this platform");
}
?>
--FILE--
<?php
$chars = "äöü";
// 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");
echo strtoupper($chars)."\n";
?>
--EXPECT--
ÄÖÜ