summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-print.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1998-10-06 03:02:29 +0000
committerBruce Momjian <bruce@momjian.us>1998-10-06 03:02:29 +0000
commite1ebac319d1491e54dd8e3e457d48aa766771366 (patch)
tree48a57b8f779c2b8a1d68ef953f4b173168d5c3a6 /src/interfaces/libpq/fe-print.c
parentc77a29a14efe69851a087989e3520ed560fa8862 (diff)
Here are the patches against the current source tree. I have run the
regression test on a FreeBSD box with both non-MULTIBYTE and MULTIBYTE-enabled, and confirmed that the results are same. However I do not tested on PCs(I don't have access to win). Please let me know if the patches break anything on PCs. Also please note that the patch for varchar.c is a fix for a nasty bug of char(n) types that I introduced and I believe at least this should be applied. Tatsuo Ishii
Diffstat (limited to 'src/interfaces/libpq/fe-print.c')
-rw-r--r--src/interfaces/libpq/fe-print.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/interfaces/libpq/fe-print.c b/src/interfaces/libpq/fe-print.c
index fc998d9458b..a987f2039bf 100644
--- a/src/interfaces/libpq/fe-print.c
+++ b/src/interfaces/libpq/fe-print.c
@@ -9,7 +9,7 @@
* didn't really belong there.
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.13 1998/10/04 20:46:39 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.14 1998/10/06 03:02:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -513,7 +513,17 @@ PQmblen(unsigned char *s)
return (pg_encoding_mblen(encoding, s));
}
-#endif
+#else
+
+#ifdef WIN32
+int
+PQmblen(unsigned char *s)
+{
+}
+#endif /* WIN32 */
+
+
+#endif /* MULTIBYTE */
static void
do_field(PQprintOpt *po, PGresult *res,