Teodor Sigaev <teodor(at)stack(dot)net> writes:
> It's locale.
Yup. I've applied a fix in pg_locale.c. Turns out the code was trying
to do the right thing, but failed because setlocale() returns pointers
to modifiable static variables :-(
regards, tom lane