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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -