From cb7cbc16fa4b5933fb5d63052568e3ed6859857b Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 16 Jun 1998 07:29:54 +0000 Subject: Hi, here are the patches to enhance existing MB handling. This time I have implemented a framework of encoding translation between the backend and the frontend. Also I have added a new variable setting command: SET CLIENT_ENCODING TO 'encoding'; Other features include: Latin1 support more 8 bit cleaness See doc/README.mb for more details. Note that the pacthes are against May 30 snapshot. Tatsuo Ishii --- src/backend/regex/engine.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/backend/regex/engine.c') diff --git a/src/backend/regex/engine.c b/src/backend/regex/engine.c index 6381d5990c9..b95b6491eb6 100644 --- a/src/backend/regex/engine.c +++ b/src/backend/regex/engine.c @@ -127,6 +127,9 @@ extern "C" # elif MB == UNICODE # define NONCHAR(c) ((c) > USHRT_MAX) # define NNONCHAR (CODEMAX-USHRT_MAX) +# else /* assume 1 byte code such as ISO8859-1 */ +# define NONCHAR(c) ((c) > UCHAR_MAX) +# define NNONCHAR (CODEMAX-UCHAR_MAX) # endif #else # define NONCHAR(c) ((c) > CHAR_MAX) -- cgit v1.2.3