From: t-ishii@sra.co.jp
Marc G. Fournier <scrappy@hub.org>
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" <hong@lunaris.hanmesoft.co.kr>)
* 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.
Files
| Path | Change | +/− |
|---|---|---|
| doc/README.mb | modified | +39 −19 |
| doc/README.mb.jp | modified | +32 −39 |
| src/backend/regex/utils.c | modified | +135 −9 |
| src/backend/utils/adt/oracle_compat.c | modified | +6 −6 |
| src/backend/utils/adt/varchar.c | modified | +53 −1 |
| src/backend/utils/adt/varlena.c | modified | +83 −3 |
| src/configure | modified | +314 −287 |
| src/configure.in | modified | +19 −0 |
| src/include/catalog/pg_proc.h | modified | +16 −3 |
| src/include/regex/pg_wchar.h | modified | +4 −1 |
| src/include/utils/builtins.h | modified | +4 −1 |
| src/Makefile.global.in | modified | +6 −1 |
| src/test/regress/expected/euc_jp.out | modified | +32 −0 |
| src/test/regress/regress.sh | modified | +2 −2 |
| src/test/regress/sql/euc_jp.sql | modified | +4 −0 |