I wrote:
> Magnus Hagander <magnus@hagander.net> writes:
>> On Thu, May 31, 2012 at 8:16 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>> What platform?
>> Ubuntu 12.04.
> FWIW, I get the same on Fedora 16.
This seems to be a glibc bug: it won't set errno correctly
if you've already asked about the same wrong locale name. Filed at
https://bugzilla.redhat.com/show_bug.cgi?id=827510
regards, tom lane