php-src/tests/lang/bug30638.phpt
Hannes Magnusson b12e3e1475 Fix tests
2006-12-19 10:03:24 +00:00

21 lines
502 B
PHP

--TEST--
Bug #30638 (localeconv returns wrong LC_NUMERIC settings)
--SKIPIF--
<?php # try to activate a german locale
if (setlocale(LC_NUMERIC, "de_DE", "de", "german", "ge") === FALSE) {
print "skip setlocale() failed";
}
?>
--FILE--
<?php
# activate the german locale
setlocale(LC_NUMERIC, "de_DE", "de", "german", "ge");
$lc = localeconv();
printf("decimal_point: %s\n", $lc['decimal_point']);
printf("thousands_sep: %s\n", $lc['thousands_sep']);
?>
--EXPECT--
decimal_point: ,
thousands_sep: .