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.
REL8_1_STABLE
Tom Lane 17 years ago
parent 010953d904
commit 38da2203a9
  1. 4
      src/backend/utils/error/elog.c

@ -42,7 +42,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.167.2.8 2009/03/02 21:19:05 tgl Exp $
* $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.167.2.9 2009/03/03 00:17:29 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -643,7 +643,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); \

Loading…
Cancel
Save