mirror of
https://github.com/php/php-src.git
synced 2024-10-22 16:57:05 +00:00
066e8aeef6
# Allthough these characters are used in germany, that doesn't mean, that # they're not part of the latin-1 character set.
21 lines
607 B
PHP
21 lines
607 B
PHP
--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");
|
|
}
|
|
?>
|
|
--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", "de_DE.ISO8859-1", "ISO8859-1");
|
|
echo strtoupper($chars)."\n";
|
|
?>
|
|
--EXPECT--
|
|
ÄÖÜ
|