php-src/tests/lang/bug30638.phpt

26 lines
806 B
Plaintext
Raw Normal View History

--TEST--
2007-02-11 20:12:45 +00:00
Bug #30638 (localeconv returns wrong LC_NUMERIC settings) (ok to fail on MacOS X)
--SKIPIF--
<?php # try to activate a german locale
if (setlocale(LC_NUMERIC, "de_DE", "de", "german", "ge") === FALSE) {
print "skip";
} elseif (strtolower(php_uname('s')) == 'darwin') {
print "skip ok to fail on MacOS X";
}
?>
--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']);
?>
2008-05-26 15:52:06 +00:00
--EXPECTF--
Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d
2006-12-06 13:11:02 +00:00
Deprecated: localeconv(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d
2006-12-06 13:11:02 +00:00
decimal_point: ,
thousands_sep: .