From: Tom Lane Date: Tue, 3 Mar 2009 00:17:13 +0000 (+0000) Subject: Ooops ... fix some confusion between gettext() and _() in my previous patch. X-Git-Tag: REL8_3_7~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1fc5d2a89f328745051801aad6c1643c501c1b39;p=postgresql Ooops ... fix some confusion between gettext() and _() in my previous patch. This has moved around in past releases, so just copying-and-pasting from HEAD didn't work as intended. --- diff --git a/src/backend/utils/error/elog.c b/src/backend/utils/error/elog.c index bc6b1327c7..c6cd5ac554 100644 --- a/src/backend/utils/error/elog.c +++ b/src/backend/utils/error/elog.c @@ -42,7 +42,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.201.2.3 2009/03/02 21:18:50 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.201.2.4 2009/03/03 00:17:13 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -637,7 +637,7 @@ errcode_for_socket_access(void) StringInfoData buf; \ /* Internationalize the error format string */ \ if (translateit && !in_error_recursion_trouble()) \ - fmt = _(fmt); \ + fmt = gettext(fmt); \ /* Expand %m in format string */ \ fmtbuf = expand_fmt_string(fmt, edata); \ initStringInfo(&buf); \