[PATCH]Fix for ecpglib's native language messages output
Hi
I found the ecpg programs can not output the native language messages which
defined in ecpglib6-9.x.mo.
The reason is a misstake in "src/interfaces/ecpg/ecpglib/misc.c",
and i mad a patch for that.
Chen Huajun
Attachments:
ecpg_gettext.patchtext/plain; name=ecpg_gettext.patchDownload
diff --git a/postgresql-9.1.4org/src/interfaces/ecpg/ecpglib/misc.c b/postgresql-9.1.4new/src/interfaces/ecpg/ecpglib/misc.c
index c29f933..ef7e634 100644
--- a/postgresql-9.1.4org/src/interfaces/ecpg/ecpglib/misc.c
+++ b/postgresql-9.1.4new/src/interfaces/ecpg/ecpglib/misc.c
@@ -497,7 +497,7 @@ ecpg_gettext(const char *msgid)
#endif
}
- return dgettext(PG_TEXTDOMAIN("ecpg"), msgid);
+ return dgettext(PG_TEXTDOMAIN("ecpglib"), msgid);
}
#endif /* ENABLE_NLS */
On Sun, Jan 27, 2013 at 12:42:48PM +0800, Chen Huajun wrote:
I found the ecpg programs can not output the native language messages which
defined in ecpglib6-9.x.mo.
The reason is a misstake in "src/interfaces/ecpg/ecpglib/misc.c",
and i mad a patch for that.
Thanks for finding an fixing the problem, patch committed.
Michael
--
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
Jabber: michael.meskes at gmail dot com
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers