From f554af0a9fdbe0e9636fce36d6c809e81ce1539c Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Mon, 27 Apr 1998 17:10:50 +0000 Subject: From: t-ishii@sra.co.jp Hi, here are patches I promised (against 6.3.2): * character_length(), position(), substring() are now aware of multi-byte characters * add octet_length() * add --with-mb option to configure * new regression tests for EUC_KR (contributed by "Soonmyung. Hong" ) * add some test cases to the EUC_JP regression test * fix problem in regress/regress.sh in case of System V * fix toupper(), tolower() to handle 8bit chars note that: o patches for both configure.in and configure are included. maybe the one for configure is not necessary. o pg_proc.h was modified to add octet_length(). I used OIDs (1374-1379) for that. Please let me know if these numbers are not appropriate. --- src/configure.in | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/configure.in') diff --git a/src/configure.in b/src/configure.in index 345c290173..81824ed835 100644 --- a/src/configure.in +++ b/src/configure.in @@ -199,6 +199,24 @@ AC_ARG_ENABLE( AC_MSG_RESULT(disabled) ) +AC_MSG_CHECKING(setting MB) +AC_ARG_WITH(mb, + [ --with-mb= enable multi-byte support ], + [ + case "$withval" in + EUC_JP|EHC_CN|EUC_KR|EUC_TW|UNICODE|MULE_INTERNAL) + MB="$withval"; + AC_MSG_RESULT("enabled with $withval") + ;; + *) + AC_MSG_ERROR([*** You must supply an argument to the --with-mb option one of EUC_JP,EHC_CN,EUC_KR,EUC_TW,UNICODE,MULE_INTERNAL]) + ;; + esac + MB="$withval" + ], + AC_MSG_RESULT("disabled") +) + dnl We use the default value of 5432 for the DEF_PGPORT value. If dnl we over-ride it with --with-pgport=port then we bypass this piece AC_MSG_CHECKING(setting DEF_PGPORT) @@ -305,6 +323,7 @@ AC_SUBST(DLSUFFIX) AC_SUBST(DL_LIB) AC_SUBST(USE_TCL) AC_SUBST(USE_PERL) +AC_SUBST(MB) dnl **************************************************************** dnl Hold off on the C++ stuff until we can figure out why it doesn't -- cgit v1.2.1