Does anyone know of some list of all locale bugs? Or some tutorial how to use locales safely? Or maybe you know of some PHP version where locale actually works?
I'm trying to use gettext, which require locales but encountered like 4 PHP bugs so far...
The typical tutorial says something like that:
putenv("LC_ALL=$language");
setlocale(LC_ALL, $language);
bindtextdomain("messages", "./locale");
textdomain("messages");
But usage of LC_ALL is a suicide, if you try to use it with Turkish language all fuctions with "I" in the function name will become "non existant", like half languages will break all floats calculations (',' and '.' difference). GD library stops working with some locales, etc, etc.
Do you know by any chance of a minimal setting of locales, just enough to make gettext work?
Locale PHP bugs
Moderator: General Moderators
Re: Locale PHP bugs
Isn't this machine dependent and it depends on what locales are installed? You probably have to install the locales-all package...but this is just my guess I don't work with PHP locales.