From: t-ishii@sra.co.jp
Marc G. Fournier <scrappy@hub.org>
From: t-ishii@sra.co.jp Included are patches intended for allowing PostgreSQL to handle multi-byte charachter sets such as EUC(Extende Unix Code), Unicode and Mule internal code. With the MB patch you can use multi-byte character sets in regexp and LIKE. The encoding system chosen is determined at the compile time. To enable the MB extension, you need to define a variable "MB" in Makefile.global or in Makefile.custom. For further information please take a look at README.mb under doc directory. (Note that unlike "jp patch" I do not use modified GNU regexp any more. I changed Henry Spencer's regexp coming with PostgreSQL.)
Files
| Path | Change | +/− |
|---|---|---|
| doc/Makefile | modified | +2 −2 |
| doc/README.mb | added | +67 −0 |
| doc/README.mb.jp | added | +106 −0 |
| src/backend/regex/engine.c | modified | +102 −68 |
| src/backend/regex/Makefile | modified | +5 −1 |
| src/backend/regex/regcomp.c | modified | +142 −36 |
| src/backend/regex/regerror.c | modified | +5 −0 |
| src/backend/regex/regexec.c | modified | +23 −2 |
| src/backend/regex/regfree.c | modified | +5 −1 |
| src/backend/regex/utftest.c | added | +33 −0 |
| src/backend/regex/utils.c | added | +348 −0 |
| src/backend/regex/wstrcmp.c | added | +48 −0 |
| src/backend/regex/wstrncmp.c | added | +83 −0 |
| src/backend/utils/adt/like.c | modified | +21 −8 |
| src/backend/utils/adt/Makefile | modified | +4 −1 |
| src/configure | modified | +4 −4 |
| src/configure.in | modified | +4 −4 |
| src/include/regex/pg_wchar.h | added | +44 −0 |
| src/include/regex/regex2.h | modified | +38 −4 |
| src/include/regex/regex.h | modified | +6 −1 |
| src/include/regex/utils.h | modified | +5 −0 |
| src/test/regress/GNUmakefile | modified | +2 −1 |
| src/test/regress/regress.sh | modified | +7 −2 |