Annotation of embedaddon/php/tests/lang/bug30638.phpt, revision 1.1.1.2
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
1.1.1.2 ! misho 5: if (substr(PHP_OS, 0, 3) == 'WIN') {
! 6: /* skip on windows until #63688 was fixed */
! 7: die('skip');
! 8: }
1.1 misho 9: if (setlocale(LC_NUMERIC, "de_DE.UTF-8", "de_DE", "de", "german", "ge", "de_DE.ISO-8859-1") === FALSE) {
10: print "skip setlocale() failed";
11: } elseif (strtolower(php_uname('s')) == 'darwin') {
12: print "skip ok to fail on MacOS X";
13: }
14: ?>
15: --FILE--
16: <?php
17: # activate the german locale
18: setlocale(LC_NUMERIC, "de_DE.UTF-8", "de_DE", "de", "german", "ge", "de_DE.ISO-8859-1");
19:
20: $lc = localeconv();
21: printf("decimal_point: %s\n", $lc['decimal_point']);
22: printf("thousands_sep: %s\n", $lc['thousands_sep']);
23: ?>
24: --EXPECT--
25: decimal_point: ,
26: thousands_sep: .
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>