Annotation of embedaddon/php/tests/lang/bug30638.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #30638 (localeconv returns wrong LC_NUMERIC settings) (ok to fail on MacOS X)
                      3: --SKIPIF--
                      4: <?php  # try to activate a german locale
                      5: if (setlocale(LC_NUMERIC, "de_DE.UTF-8", "de_DE", "de", "german", "ge", "de_DE.ISO-8859-1") === FALSE) {
                      6:        print "skip setlocale() failed";
                      7: } elseif (strtolower(php_uname('s')) == 'darwin') {
                      8:     print "skip ok to fail on MacOS X";
                      9: }
                     10: ?>
                     11: --FILE--
                     12: <?php 
                     13: # activate the german locale
                     14: setlocale(LC_NUMERIC, "de_DE.UTF-8", "de_DE", "de", "german", "ge", "de_DE.ISO-8859-1");
                     15: 
                     16: $lc = localeconv();
                     17: printf("decimal_point: %s\n", $lc['decimal_point']);
                     18: printf("thousands_sep: %s\n", $lc['thousands_sep']);
                     19: ?>
                     20: --EXPECT--
                     21: decimal_point: ,
                     22: thousands_sep: .

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>