Re: [bug fix] strerror() returns ??? in a UTF-8/C database with LC_MESSAGES=non-ASCII - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [bug fix] strerror() returns ??? in a UTF-8/C database with LC_MESSAGES=non-ASCII
Date
Msg-id 23219.1383771127@sss.pgh.pa.us
Whole thread Raw
In response to Re: [bug fix] strerror() returns ??? in a UTF-8/C database with LC_MESSAGES=non-ASCII  ("MauMau" <maumau307@gmail.com>)
Responses Re: [bug fix] strerror() returns ??? in a UTF-8/C database with LC_MESSAGES=non-ASCII
List pgsql-hackers
"MauMau" <maumau307@gmail.com> writes:
> I did as Tom san suggested.  Please review the attached patch.  I chose as 
> common errnos by selecting those which are used in PosttgreSQL source code 
> out of the error numbers defined in POSIX 2013.

I've committed this with some editorialization (mostly, I used a case
statement not a constant array, because that's more like the other places
that switch on errnos in this file).

> As I said, lack of %m string has been making troubleshooting difficult, so I 
> wish this to be backported at least 9.2.

I'm waiting to see whether the buildfarm likes this before considering
back-patching.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: alter_table regression test problem
Next
From: Andres Freund
Date:
Subject: Re: alter_table regression test problem