]> granicus.if.org Git - php/commitdiff
remove bogus locale use from test
authorkrakjoe <joe.watkins@live.co.uk>
Thu, 21 Aug 2014 09:03:48 +0000 (10:03 +0100)
committerRemi Collet <remi@php.net>
Wed, 1 Oct 2014 08:12:06 +0000 (10:12 +0200)
ext/standard/tests/strings/setlocale_variation2.phpt

index 038ba58c5ec4710233b21d04423329020f104d11..10ae22fe0c6c1e64cb87799ecab865c3467acd49 100644 (file)
@@ -18,8 +18,11 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
 /* setlocale() to set all available locales in the system and check the success count */
 echo "*** Testing setlocale() : usage variations ***\n";
 
-function good_locale($locale) {
-       return $locale !== 'tt_RU@iqtelif.UTF-8';
+function good_locale($locale) { 
+    /**
+    * Note: no_NO is a bogus locale and should not be used, see https://bugzilla.redhat.com/show_bug.cgi?id=532487
+    **/
+       return $locale !== 'tt_RU@iqtelif.UTF-8' && substr($locale, 0, 5) !== "no_NO";
 }
 
 /* Prototype  : array list_system_locales( void )