]> granicus.if.org Git - php/commitdiff
Added 'skip logic' to the test on platforms where the locale required by
authorIlia Alshanetsky <iliaa@php.net>
Wed, 23 Oct 2002 23:04:43 +0000 (23:04 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 23 Oct 2002 23:04:43 +0000 (23:04 +0000)
this test is not avaliable.

ext/standard/tests/strings/strtoupper.phpt

index 5c14cc921a4b130dd9eef854c3c2c506a4a06090..1b50221cdf9fc413b81ffc39ed76db001cbda929 100644 (file)
@@ -1,17 +1,20 @@
 --TEST--
 Test strtoupper on non-ASCII characters
---POST--
---GET--
+--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 = "àëï";
-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));
+setlocale(LC_CTYPE, "de_DE", "de", "german", "ge");
+echo strtoupper($chars)."\n";
 ?>
 --EXPECT--
-ÄËÏ
+ÀËÏ