aboutsummaryrefslogtreecommitdiff
path: root/src/include/regex/regex2.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1998-06-16 07:29:54 +0000
committerBruce Momjian <bruce@momjian.us>1998-06-16 07:29:54 +0000
commitcb7cbc16fa4b5933fb5d63052568e3ed6859857b (patch)
treebed17594c4880549288373de4d400512cbe2f82d /src/include/regex/regex2.h
parent0d8e7f6381291b85ad6264365e01143357d70a75 (diff)
downloadpostgresql-cb7cbc16fa4b5933fb5d63052568e3ed6859857b.tar.gz
postgresql-cb7cbc16fa4b5933fb5d63052568e3ed6859857b.zip
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
Diffstat (limited to 'src/include/regex/regex2.h')
-rw-r--r--src/include/regex/regex2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/regex/regex2.h b/src/include/regex/regex2.h
index 01cdadff451..4590862486c 100644
--- a/src/include/regex/regex2.h
+++ b/src/include/regex/regex2.h
@@ -203,6 +203,8 @@ struct re_guts
# define OUT (USHRT_MAX+1) /* 2 bytes */
# elif MB == UNICODE
# define OUT (USHRT_MAX+1) /* 2 bytes. assuming UCS-2 */
+# else
+# define OUT (UCHAR_MAX+1) /* other codes. assuming 1 byte */
# endif
#else
# define OUT (CHAR_MAX+1) /* a non-character value */