mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
From: t-ishii@sra.co.jp
As Bruce mentioned, this is due to the conflict among changes we made. Included patches should fix the problem(I changed all MB to MULTIBYTE). Please let me know if you have further problem. P.S. I did not include pathces to configure and gram.c to save the file size(configure.in and gram.y modified).
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.24 1998/07/24 03:32:33 scrappy Exp $
|
||||
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.25 1998/07/26 04:31:35 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
@@ -25,14 +25,14 @@ ifdef KRBVERS
|
||||
CFLAGS+= $(KRBFLAGS)
|
||||
endif
|
||||
|
||||
ifdef MB
|
||||
CFLAGS+= -DMB=$(MB)
|
||||
ifdef MULTIBYTE
|
||||
CFLAGS+= $(MBFLAGS)
|
||||
endif
|
||||
|
||||
OBJS= fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o \
|
||||
dllist.o pqsignal.o
|
||||
|
||||
ifdef MB
|
||||
ifdef MULTIBYTE
|
||||
OBJS+= common.o wchar.o conv.o
|
||||
endif
|
||||
|
||||
@@ -42,7 +42,7 @@ install-shlib-dep :=
|
||||
|
||||
ifeq ($(PORTNAME), linux)
|
||||
install-shlib-dep := install-shlib
|
||||
shlib := libpq.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
|
||||
shlib := libpq.so.$(SO_MAJOR_VERSION)
|
||||
LDFLAGS_SL = -shared -soname libpq.so.$(SO_MAJOR_VERSION)
|
||||
CFLAGS += $(CFLAGS_SL)
|
||||
endif
|
||||
@@ -104,6 +104,19 @@ fe-lobj.o: $(SRCDIR)/backend/fmgr.h
|
||||
dllist.c: $(SRCDIR)/backend/lib/dllist.c
|
||||
-ln -s $(SRCDIR)/backend/lib/dllist.c .
|
||||
|
||||
ifdef MULTIBYTE
|
||||
# We need to compile this with special options for shared libs,
|
||||
# so we can't use the object in $(SRCDIR)/backend
|
||||
common.c: $(SRCDIR)/backend/utils/mb/common.c
|
||||
-ln -s $(SRCDIR)/backend/utils/mb/common.c .
|
||||
|
||||
wchar.c: $(SRCDIR)/backend/utils/mb/wchar.c
|
||||
-ln -s $(SRCDIR)/backend/utils/mb/wchar.c .
|
||||
|
||||
conv.c: $(SRCDIR)/backend/utils/mb/conv.c
|
||||
-ln -s $(SRCDIR)/backend/utils/mb/conv.c .
|
||||
endif
|
||||
|
||||
# The following rules cause dependencies in the backend directory to
|
||||
# get made if they don't exist, but don't cause them to get remade if they
|
||||
# are out of date.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.76 1998/07/24 03:32:33 scrappy Exp $
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.77 1998/07/26 04:31:36 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -44,7 +44,7 @@
|
||||
#include <crypt.h>
|
||||
#endif
|
||||
|
||||
#ifdef MB
|
||||
#ifdef MULTIBYTE
|
||||
#include "mb/pg_wchar.h"
|
||||
#endif
|
||||
|
||||
@@ -792,7 +792,7 @@ PQsetenv(PGconn *conn)
|
||||
{
|
||||
struct EnvironmentOptions *eo;
|
||||
char setQuery[80]; /* mjl: size okay? XXX */
|
||||
#ifdef MB
|
||||
#ifdef MULTIBYTE
|
||||
char *envname = "PGCLIENTENCODING";
|
||||
char envbuf[64];
|
||||
char *env;
|
||||
@@ -800,7 +800,7 @@ PQsetenv(PGconn *conn)
|
||||
PGresult *rtn;
|
||||
#endif
|
||||
|
||||
#ifdef MB
|
||||
#ifdef MULTIBYTE
|
||||
/* query server encoding */
|
||||
env = getenv(envname);
|
||||
if (!env) {
|
||||
@@ -815,7 +815,7 @@ PQsetenv(PGconn *conn)
|
||||
PQclear(rtn);
|
||||
}
|
||||
if (!encoding) { /* this should not happen */
|
||||
sprintf(envbuf,"%s=%s",envname,pg_encoding_to_char(MB));
|
||||
sprintf(envbuf,"%s=%s",envname,pg_encoding_to_char(MULTIBYTE));
|
||||
putenv(envbuf);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* didn't really belong there.
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.7 1998/07/18 18:34:33 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.8 1998/07/26 04:31:36 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -36,8 +36,7 @@
|
||||
#endif /* WIN32 */
|
||||
|
||||
#ifdef MULTIBYTE
|
||||
#include "regex/pg_wchar.h"
|
||||
#include "commands/variable.h"
|
||||
#include "mb/pg_wchar.h"
|
||||
#endif
|
||||
|
||||
#ifdef TIOCGWINSZ
|
||||
|
||||
Reference in New Issue
Block a user