>>  As for validity, since locale mechanism has a bunch of fallbacks, I
>> understand the validity concept is a bit blurred. I.e. you can have
>> regexp
>> to check all the -'s or _'s are in place but beyond that it's kind of
>> hard
>> to know what the question "is en_RU locale valid?" means.
>
> It is amazingly handy to know that a locale given by the user (UI or a
> developer using your library) is valid. What I like to have are
> getCountry, getISO3* etc. I can provide a list and then a patch.

I think locale validity detection does not work in PHP6
locale_set_default() too. Bug 42471.

-- 
Tomas


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to