We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85f9793 commit 70f7da3Copy full SHA for 70f7da3
src/interfaces/libpq/fe-misc.c
@@ -23,7 +23,7 @@
23
* Portions Copyright (c) 1994, Regents of the University of California
24
*
25
* IDENTIFICATION
26
- * $PostgreSQL: pgsql/src/interfaces/libpq/fe-misc.c,v 1.115 2005/07/06 16:25:59 tgl Exp $
+ * $PostgreSQL: pgsql/src/interfaces/libpq/fe-misc.c,v 1.116 2005/07/08 15:24:41 tgl Exp $
27
28
*-------------------------------------------------------------------------
29
*/
@@ -1142,7 +1142,11 @@ libpq_gettext(const char *msgid)
1142
if (!ldir)
1143
ldir = LOCALEDIR;
1144
bindtextdomain("libpq", ldir);
1145
+#ifdef WIN32
1146
+ SetLastError(save_errno);
1147
+#else
1148
errno = save_errno;
1149
+#endif
1150
}
1151
1152
return dgettext("libpq", msgid);
0 commit comments