File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 2525 *
2626 *
2727 * IDENTIFICATION
28- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.65 2001/12/03 00:28:24 tgl Exp $
28+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.65.2.1 2005/07/08 15:25:46 tgl Exp $
2929 *
3030 *-------------------------------------------------------------------------
3131 */
@@ -844,8 +844,16 @@ libpq_gettext(const char *msgid)
844844
845845 if (!already_bound )
846846 {
847+ /* dgettext() preserves errno, but bindtextdomain() doesn't */
848+ int save_errno = errno ;
849+
847850 already_bound = 1 ;
848851 bindtextdomain ("libpq" , LOCALEDIR );
852+ #ifdef WIN32
853+ SetLastError (save_errno );
854+ #else
855+ errno = save_errno ;
856+ #endif
849857 }
850858
851859 return dgettext ("libpq" , msgid );
You can’t perform that action at this time.
0 commit comments