I have these 3 locales installed and generated in my debian VPS
Generating locales is doing this
About webserver, I am using Apache with php-fpm
In my code i do this
echo "\n<!-- locale:\n" ;
var_dump($locale);
echo " -->\n";
putenv("LC_ALL=$locale");
$_dbg_set_locale = setlocale(LC_ALL, $locale);
echo "\n<!-- esit setLocale:\n" ;
var_dump($_dbg_set_locale);
echo " -->\n";
And I got that result
<!-- locale:
string(5) "en_GB"
-->
<!-- esit setLocale:
bool(false)
-->
As you can see setLocale
is failing, returning a boolean false
why setLocale
is faling?