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

18 lines
399 B
Plaintext
Raw Normal View History

2002-10-22 19:39:17 +00:00
--TEST--
Test strtoupper on non-ASCII characters
--POST--
--GET--
--FILE--
<?php
$chars = "<22><><EFBFBD>";
setlocale(LC_ALL, "C");
// 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, "ISO8859-1");
print(strtoupper($chars));
?>
--EXPECT--
<EFBFBD><EFBFBD><EFBFBD>