Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (25 sloc) 793 Bytes
Bug #30638 (localeconv returns wrong LC_NUMERIC settings) (ok to fail on MacOS X)
<?php # try to activate a german locale
if (substr(PHP_OS, 0, 3) == 'WIN') {
/* skip on windows until #63688 was fixed */
if (setlocale(LC_NUMERIC, "de_DE.UTF-8", "de_DE", "de", "german", "ge", "de_DE.ISO-8859-1") === FALSE) {
print "skip setlocale() failed";
} elseif (strtolower(php_uname('s')) == 'darwin') {
print "skip ok to fail on MacOS X";
# activate the german locale
setlocale(LC_NUMERIC, "de_DE.UTF-8", "de_DE", "de", "german", "ge", "de_DE.ISO-8859-1");
$lc = localeconv();
printf("decimal_point: %s\n", $lc['decimal_point']);
printf("thousands_sep: %s\n", $lc['thousands_sep']);
decimal_point: ,
thousands_sep: .
Something went wrong with that request. Please try again.