diff options
author | Melvyn Sopacua <msopacua@php.net> | 2002-10-22 19:39:17 +0000 |
---|---|---|
committer | Melvyn Sopacua <msopacua@php.net> | 2002-10-22 19:39:17 +0000 |
commit | d6e639a02fee2c5d00a19fd6f8f0c42a810b7be3 (patch) | |
tree | 6c755db288a3181f3829e18486680b0bf6b95fb7 /ext/standard | |
parent | 8cbe1ea796b3a4e51503fc71d61326c769b1ce1b (diff) | |
download | php-git-d6e639a02fee2c5d00a19fd6f8f0c42a810b7be3.tar.gz |
test for locale support in strtoupper
Diffstat (limited to 'ext/standard')
-rw-r--r-- | ext/standard/tests/strings/strtoupper.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/standard/tests/strings/strtoupper.phpt b/ext/standard/tests/strings/strtoupper.phpt new file mode 100644 index 0000000000..5c14cc921a --- /dev/null +++ b/ext/standard/tests/strings/strtoupper.phpt @@ -0,0 +1,17 @@ +--TEST-- +Test strtoupper on non-ASCII characters +--POST-- +--GET-- +--FILE-- +<?php +$chars = "àëï"; +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-- +ÄËÏ |