Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit661ecf3

Browse files
committed
From: t-ishii@sra.co.jp
Included are patches intended for allowing PostgreSQL to handlemulti-byte charachter sets such as EUC(Extende Unix Code), Unicode andMule internal code. With the MB patch you can use multi-byte charactersets in regexp and LIKE. The encoding system chosen is determined atthe compile time.To enable the MB extension, you need to define a variable "MB" inMakefile.global or in Makefile.custom. For further information pleasetake a look at README.mb under doc directory.(Note that unlike "jp patch" I do not use modified GNU regexp anymore. I changed Henry Spencer's regexp coming with PostgreSQL.)
1 parent31a925c commit661ecf3

File tree

23 files changed

+1104
-135
lines changed

23 files changed

+1104
-135
lines changed

‎doc/Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
#
99
#
1010
# IDENTIFICATION
11-
# $Header: /cvsroot/pgsql/doc/Makefile,v 1.4 1998/03/01 20:37:44 thomas Exp $
11+
# $Header: /cvsroot/pgsql/doc/Makefile,v 1.5 1998/03/15 07:37:51 scrappy Exp $
1212
#
1313
#----------------------------------------------------------------------------
1414

15-
PGDOCS=.
15+
PGDOCS=/usr/local/cdrom/docs
1616
SRCDIR= ../src
1717

1818
TAR= tar

‎doc/README.mb‎

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
postgresql 6.3 multi-byte(MB) patch PL2 README Mar 10 1998
2+
3+
Tatsuo Ishii
4+
t-ishii@sra.co.jp
5+
http://www.sra.co.jp/people/t-ishii/PostgreSQL/
6+
7+
Introduction
8+
9+
MB patch is intended for allowing PostgreSQL to handle multi-byte
10+
charachter sets such as EUC(Extende Unix Code), Unicode and Mule
11+
internal code. With the MB patch you can use multi-byte character sets
12+
in regexp and LIKE. The encoding system chosen is determined at the
13+
compile time.
14+
15+
The patch also fixes some problems concerning with 8-bit single byte
16+
character sets including ISO8859. (I would not say all of problems
17+
have been fixed. I just confirmed that the regression test ran fine
18+
and a few French characters could be used with the patch. Please let
19+
me know if you find any problem while using 8-bit characters)
20+
21+
How to use
22+
23+
After applying the MB patch, create src/Makefile.custom with a line
24+
including:
25+
26+
MB=encoding_system
27+
28+
where encoding_system is one of:
29+
30+
EUC_JPJapanese EUC
31+
EUC_CNChinese EUC
32+
EUC_KRKorean EUC
33+
EUC_TWTaiwan EUC
34+
UNICODEUnicode(UTF-8)
35+
MULE_INTERNALMule internal
36+
37+
Example:
38+
39+
% cat Makefile.custom
40+
MB=EUC_JP
41+
42+
If MB is not defined, nothing is changed except better supporting for
43+
8-bit single byte character sets.
44+
45+
References
46+
47+
These are good sources to start learning various kind of encoding
48+
systems.
49+
50+
ftp://ftp.ora.com/pub/examples/nutshell/ujip/doc/cjk.inf
51+
Detailed explanations of EUC_JP, EUC_CN, EUC_KR, EUC_TW
52+
appear in section 3.2.
53+
54+
Unicode: http://www.unicode.org/
55+
The homepage of UNICODE.
56+
57+
RFC 2044
58+
UTF-8 is defined here.
59+
60+
History
61+
62+
Mar 10, 1998 PL2 released
63+
* add regression test for EUC_JP, EUC_CN and MULE_INTERNAL
64+
* add an English document (this file)
65+
* fix problems concerning 8-bit single byte characters
66+
67+
Mar 1, 1998 PL1 released

‎doc/README.mb.jp‎

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
postgresql 6.3 multi-byte (MB) patch PL2 README 1998/3/10 $B:n@.(B
2+
3+
$B@P0fC#IW(B
4+
t-ishii@sra.co.jp
5+
http://www.sra.co.jp/people/t-ishii/PostgreSQL/
6+
7+
$B$O$8$a$K!'(B
8+
$B$3$N%Q%C%A$O!"%U%j!<$J(B RDBMS(Relational Database Management System)$B$N(B
9+
PostgreSQL (http://www.postgresql.org/)$B$N:G?7HG(B 6.3 $B$GF|K\8l(B EUC
10+
$B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%H$O(B ftp://ftp.postgresql.org
31+
$B$G$9!#(B
32+
33+
$B$3$N%Q%C%A$NF~<jJ}K!!'(B
34+
35+
ftp://ftp.sra.co.jp/pub/cmd/postgres/6.3/patches/6.3mbPL2.patch.gz
36+
$B$rF~<j$7$F2<$5$$!#(B
37+
38+
$B%Q%C%A$N$"$F$+$?!'(B
39+
$BF~<j$7$?%Q%C%A%U%!%$%k$rE83+$7$^$9!#(B
40+
41+
% gunzip 6.3mbPL2.patch.gz
42+
43+
postgresql-6.3 $B$N%=!<%9$rE83+$7$^$9!#(B
44+
45+
% gtar xfz postgresql-6.3.tar.gz
46+
47+
$B$9$k$H!"(Bpostgresql-6.3 $B$H$$$&%G%#%l%/%H%j$,$G$-$k$N$G!"$=$3$K(B
48+
cd $B$7$^$9!#(B
49+
50+
% cd postgresql-6.3
51+
52+
$B%Q%C%A$rEv$F$^$9!#(B
53+
54+
% patch -p1 < 6.3mbPL2.patch
55+
56+
$B$H$7$F$"$F$F$/$@$5$$!#<!$K!"(Bsrc/Makefile.custom $B$H$$$&%U%!%$%k$r:n$j!"(B
57+
58+
MB=EUC_JP
59+
60+
$B$N(B 1 $B9T$rDI2C$7$^$9!#(BEUC_JP $B$r4^$a!"0J2<$N%3!<%I$,;XDj$G$-$^$9!#(B
61+
62+
EUC_JP$BF|K\8l(B EUC
63+
EUC_CNGB $B$r%Y!<%9$K$7$?CfJ8(BEUC$B!#(Bcode set 2 $B$O(B
64+
SS2+2$B%P%$%H%3!<%I(B = 3$B%P%$%HI=8=$G$9!#(B
65+
EUC_KR$B4Z9q8l(B EUC$B!#(B
66+
EUC_TW$BBfOQ$N(B EUC$B!#(Bcode set 2 $B$O(B
67+
SS2+$BLLHV9f(B+2$B%P%$%H%3!<%I(B = 4$B%P%$%HI=8=$G$9!#(B
68+
UNICODEUTF-8$B!#$?$@$7%5%]!<%H$9$k$N$O(B UCS-2 $B$NHO0O!"(B
69+
$B$9$J$o$A(B 0xffff $B$^$G$G$9!#(B
70+
M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<(B
88+
$B%kJ}K!$r>R2p$7$F$$$^$9!#(B
89+
90+
$B<U<-!'(B
91+
o $B3F<oJ8;z%;%C%H!"%3!<%I7O$K$D$$$F!"F|K\8l(B PostgreSQL $B%a!<%j%s%0%j%9%H(B
92+
$B$N%a%s%P$NJ}$+$i%"%I%P%$%9$rD:$-$^$7$?!#$3$3$K46<U$7$^$9!#(B
93+
94+
$B2~DjMzNr!'(B
95+
96+
1998/3/10 PL2 $B$r%j%j!<%9(B
97+
* EUC_JP, EUC_CN, MULE_INTERNAL $B$N(B regression test $B$rDI2C(B
98+
(EUC_CN $B$N%G!<%?$O(B he@sra.co.jp $B$5$sDs6!(B)
99+
* regexp $B$K$*$$$F!"(Bisalpha $B$J$I$K(B unsigend char $B0J30$NCM$,(B
100+
$BEO$i$J$$$h$&$K%,!<%I$r$+$1$k(B
101+
* $B1Q8l$N%I%-%e%a%s%H$rDI2C(B
102+
* MB $B$rDj5A$7$J$$>l9g$KH/@8$9$k%P%0$r=$@5(B
103+
104+
1998/3/1 PL1 $B$r%j%j!<%9(B
105+
106+
$B0J>e!#(B

‎src/backend/regex/Makefile‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Makefile for regex
55
#
66
# IDENTIFICATION
7-
# $Header: /cvsroot/pgsql/src/backend/regex/Makefile,v 1.4 1997/12/20 00:26:58 scrappy Exp $
7+
# $Header: /cvsroot/pgsql/src/backend/regex/Makefile,v 1.5 1998/03/15 07:38:14 scrappy Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -17,6 +17,10 @@ CFLAGS+=$(INCLUDE_OPT)
1717
CFLAGS+=-DPOSIX_MISTAKE
1818

1919
OBJS = regcomp.o regerror.o regexec.o regfree.o
20+
ifdefMB
21+
OBJS += utils.o wstrcmp.o wstrncmp.o
22+
CFLAGS += -DMB=$(MB)
23+
endif
2024

2125
all: SUBSYS.o
2226

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp