Tom Lane wrote:
> Martijn van Oosterhout <kleptog@svana.org> writes:
>> On Tue, Sep 23, 2008 at 01:32:38PM +0300, Heikki Linnakangas wrote:
>>> "locale -a" manages to do it somehow...
>
>> Sure, by (on glibc) opening the binary archive and parsing it and then
>> trying to reverse lookup the alias list. We could ofcourse program
>> something for each platform to determine a list but who is going to
>> maintain that? How do you handle the list changing?
>
> exec("locale -a") ...
>
> I suppose we'd need something else for Windows, but I'm sure there's
> a way.
IIRC, the data is in the registry. Should be enumerable somehow - we'll
have to do it platform specific of course, but it's not the first time
we'd do that for windows...
//Magnus