PHP 5.5 setlocale() not working in CLI on Windows? -
i'm diagnosing user problems german locales. running
php -r "setlocale(lc_all, array('de_de','deu_deu)); echo 10.01;"
gives
10.01
running
<?php echo(setlocale(lc_all,array('de_de','deu_deu'))); echo 10.01;
via wamp stack gives
german_germany.1252 10,01
this shows locale active , decimal_point has changed.
is known restricting setlocale
doesn't work in cli?
after opening issue php turns indeed out bug: https://bugs.php.net/bug.php?id=65230
funny (or rather not) broken behavior won't fixed or documented:
and after all, locale has such issues on platform. solution use intl or custom localization functionality.
Comments
Post a Comment