Annotation of embedaddon/php/ext/standard/tests/strings/strtoupper.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test strtoupper on non-ASCII characters
! 3: --SKIPIF--
! 4: <?php
! 5: if (!setlocale(LC_CTYPE, "de_DE", "de", "german", "ge", "de_DE.ISO8859-1", "ISO8859-1")) {
! 6: die("skip locale needed for this test is not supported on this platform");
! 7: }
! 8: ?>
! 9: --FILE--
! 10: <?php
! 11: $chars = "äöü";
! 12: // Not sure which is most portable. BSD's answer to
! 13: // this one. A small array based on PHP_OS should
! 14: // cover a majority of systems and makes the problem
! 15: // of locales transparent for the end user.
! 16: setlocale(LC_CTYPE, "de_DE", "de", "german", "ge", "de_DE.ISO8859-1", "ISO8859-1");
! 17: echo strtoupper($chars)."\n";
! 18: ?>
! 19: --EXPECT--
! 20: ÄÖÜ
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>