From 32a1a4e54f6db8d3caf71ced4b4cd6bc11013b86 Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii <ishii@postgresql.org> Date: Sun, 11 Jul 1999 22:59:26 +0000 Subject: [PATCH] document updated for 6.5.1 --- doc/README.mb | 70 ++++++++++++++++++++++++++++++++++++++++++---- doc/README.mb.jp | 72 ++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 135 insertions(+), 7 deletions(-) diff --git a/doc/README.mb b/doc/README.mb index 95c46ef3c55..211c3dcacf4 100644 --- a/doc/README.mb +++ b/doc/README.mb @@ -1,4 +1,4 @@ -postgresql 6.5 multi-byte (MB) support README Mar 23 1999 +postgresql 6.5.1 multi-byte (MB) support README July 11 1999 Tatsuo Ishii t-ishii@sra.co.jp @@ -43,8 +43,8 @@ where encoding_system is one of: LATIN4 ISO 8859-4 English and some European languages LATIN5 ISO 8859-5 English and some European languages KOI8 KOI8-R - WIN CP1251 - ALT CP866 + WIN Windows CP1251 + ALT Windows CP866 Example: @@ -125,8 +125,9 @@ Supported encodings for PGCLIENTENCODING are: LATIN4 ISO 8859-4 English and some European languages LATIN5 ISO 8859-5 English and some European languages KOI8 KOI8-R - WIN CP1251 - ALT CP866 + WIN Windows CP1251 + ALT Windows CP866 + WIN1250 Windows CP1250 (Czech) Note that UNICODE is not supported(yet). Also note that the translation is not always possible. Suppose you choose EUC_JP for the @@ -177,6 +178,11 @@ Unicode: http://www.unicode.org/ 5. History +July 11, 1999 + * Add support for WIN1250 (Windows Czech) as a client encoding + (contributed by Pavel Behal) + * fix some compiler warnings (contributed by Tomoaki Nishiyama) + Mar 23, 1999 * Add support for KOI8(KOI8-R), WIN(CP1251), ALT(CP866) (thanks Oleg Broytmann for testing) @@ -230,3 +236,57 @@ Mar 10, 1998 PL2 released * fix problems concerning 8-bit single byte characters Mar 1, 1998 PL1 released + +Appendix: + +[Here is a good documentation explaining how to use WIN1250 on +Windows/ODBC from Pavel Behal. Please note that Installation step 1) +is not necceary in 6.5.1 -- Tatsuo] + +Version: 0.91 for PgSQL 6.5 +Author: Pavel Behal +Revised by: Tatsuo Ishii +Email: behal@opf.slu.cz +Licence: The Same as PostgreSQL + +Sorry for my Eglish and C code, I'm not native :-) + +!!!!!!!!!!!!!!!!!!!!!!!!! NO WARRANTY !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +Instalation: +------------ +1) Change three affected files in source directories + (I don't have time to create proper patch diffs, I don't know how) +2) Compile with enabled locale and multibyte set to LATIN2 +3) Setup properly your instalation, do not forget to create locale + variables in your profile (environment). Ex. (may not be exactly true): + LC_ALL=cs_CZ.ISO8859-2 + LC_COLLATE=cs_CZ.ISO8859-2 + LC_CTYPE=cs_CZ.ISO8859-2 + LC_MONETARY=cs_CZ.ISO8859-2 + LC_NUMERIC=cs_CZ.ISO8859-2 + LC_TIME=cs_CZ.ISO8859-2 +4) You have to start the postmaster with locales set! +5) Try it with Czech language, it have to sort +5) Install ODBC driver for PgSQL into your M$ Windows +6) Setup properly your data source. Include this line in your ODBC + configuration dialog in field "Connect Settings:" : + SET CLIENT_ENCODING = 'WIN1250'; +7) Now try it again, but in Windows with ODBC. + +Description: +------------ +- Depends on proper system locales, tested with RH6.0 and Slackware 3.6, + with cs_CZ.iso8859-2 loacle +- Never try to set-up server multibyte database encoding to WIN1250, + always use LATIN2 instead. There is not WIN1250 locale in Unix +- WIN1250 encoding is useable only for M$W ODBC clients. The characters are + on thy fly re-coded, to be displayed and stored back properly + +Important: +---------- +- it reorders your sort order depending on your LC_... setting, so don't be + confused with regression tests, they don't use locale +- "ch" is corectly sorted only in some newer locales (Ex. RH6.0) +- you have to insert money as '162,50' (with comma in aphostrophes!) +- not tested properly diff --git a/doc/README.mb.jp b/doc/README.mb.jp index c1b85f76883..929a49b02bb 100644 --- a/doc/README.mb.jp +++ b/doc/README.mb.jp @@ -1,4 +1,4 @@ -postgresql 6.5 multi-byte (MB) support README 1999/3/23 $B:n@.(B +postgresql 6.5.1 multi-byte (MB) support README 1999/7/11 $B:n@.(B $B@P0fC#IW(B t-ishii@sra.co.jp @@ -144,7 +144,8 @@ initdb/createdb/create database $B$K$*$1$k%(%s%3!<%G%#%s%0$N;XDj$K$D$$$F(B $B4D6-JQ?t(B PGCLIENTENCODING $B$,@_Dj$5$l$F$$$k>l9g$O$=$NCM$,M%@h$5$l!"%P%C(B $B%/%(%s%IB&$H0[$J$k%(%s%3!<%G%#%s%0$,;HMQ$G$-$^$9!#@_Dj2DG=$J%(%s%3!<(B - $B%G%#%s%0$O!">e5-$K2C$(!"(BSJIS ($B%7%U%H(BJIS)$B$H(B BiG5 $B$,;XDj$G$-$^$9!#(B + $B%G%#%s%0$O!">e5-$K2C$(!"(BSJIS ($B%7%U%H(BJIS)$B!"(BBiG5 $B$=$l$K(B WIN1250 + (Windows$BMQ$N%A%'%38l(B)$B$,;XDj$G$-$^$9!#(B $B$A$J$_$K!"(BSJIS $B$O(B JISX0201 $B$N(B 1$B%P%$%H%+%J!"$$$o$f$k!VH>3Q%+%?(B $B%+%J!W$b%5%]!<%H$7$F$$$^$9(B($B7h$7$F!VH>3Q%+%?%+%J!W$N;HMQ$r$*4+(B @@ -218,8 +219,75 @@ initdb/createdb/create database $B$K$*$1$k%(%s%3!<%G%#%s%0$N;XDj$K$D$$$F(B $B$^$?!"(BSJIS $BBP1~$K$D$$$F$O!";T@n(B@$B$*CcBg$5$s$N%Q%C%A$r;29M$K$5$;$F$$(B $B$?$@$-$^$7$?!#(B +$B;29M!'(B + + Pavel Behal$B;a$K$h$jDs6!$5$l$?(BWIN1250$B%5%]!<%H$G$9$,!"(BWindows$B4D6-$G$N(B + $BMxMQ$N;EJ}$K$D$$$F;29M$K$J$k%I%-%e%a%s%H$,IUB0$7$F$$$k$N$G!"$3$3$KE:(B + $BIU$7$F$*$-$^$9!#(B + + ------------------------------------------------------------------- +Version: 0.91 for PgSQL 6.5 +Author: Pavel Behal +Revised by: Tatsuo Ishii +Email: behal@opf.slu.cz +Licence: The Same as PostgreSQL + +Sorry for my Eglish and C code, I'm not native :-) + +!!!!!!!!!!!!!!!!!!!!!!!!! NO WARRANTY !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +Instalation: +------------ +1) Change three affected files in source directories + (I don't have time to create proper patch diffs, I don't know how) + [PostgreSQL 6.5.1$B$G$O$3$N%9%F%C%W$OI,MW$"$j$^$;$s!#(B-- $B@P0f(B] +2) Compile with enabled locale and multibyte set to LATIN2 +3) Setup properly your instalation, do not forget to create locale + variables in your profile (environment). Ex. (may not be exactly true): + LC_ALL=cs_CZ.ISO8859-2 + LC_COLLATE=cs_CZ.ISO8859-2 + LC_CTYPE=cs_CZ.ISO8859-2 + LC_MONETARY=cs_CZ.ISO8859-2 + LC_NUMERIC=cs_CZ.ISO8859-2 + LC_TIME=cs_CZ.ISO8859-2 +4) You have to start the postmaster with locales set! +5) Try it with Czech language, it have to sort +5) Install ODBC driver for PgSQL into your M$ Windows +6) Setup properly your data source. Include this line in your ODBC + configuration dialog in field "Connect Settings:" : + SET CLIENT_ENCODING = 'WIN1250'; +7) Now try it again, but in Windows with ODBC. + +Description: +------------ +- Depends on proper system locales, tested with RH6.0 and Slackware 3.6, + with cs_CZ.iso8859-2 loacle +- Never try to set-up server multibyte database encoding to WIN1250, + always use LATIN2 instead. There is not WIN1250 locale in Unix +- WIN1250 encoding is useable only for M$W ODBC clients. The characters are + on thy fly re-coded, to be displayed and stored back properly + +Important: +---------- +- it reorders your sort order depending on your LC_... setting, so don't be + confused with regression tests, they don't use locale +- "ch" is corectly sorted only in some newer locales (Ex. RH6.0) +- you have to insert money as '162,50' (with comma in aphostrophes!) +- not tested properly + ------------------------------------------------------------------- + + $B2~DjMzNr!'(B + 1999/7/11 WIN1250(Windows$BMQ$N%A%'%38l(B)$B%5%]!<%H$rDI2C$7$^$7$?!#(B + * WIN1250 $B$,%U%m%s%H%(%s%IB&$N%(%s%3!<%G%#%s%0$H$7$FMxMQ$G$-$k$h(B + $B$&$K$J$j$^$7$?!#$3$N>l9g!"%P%C%/%(%s%IB&$N%(%s%3!<%G%#%s%0$O(B + LATIN2 $B$^$?$O(B MULE_INTERNAL $B$H$7$^$9!#(B + (contributed by Pavel Behal) + * backend/utils/mb/conv.c$B$K$*$1$k7?$NIT@09g$r=$@5$7$^$7$?!#(B + (contributed by Tomoaki Nishiyama) + * $B$3$l$i$O(B6.5.1$B$KH?1G$5$l$^$9!#(B + 1999/3/23 $B%-%j%kJ8;z%5%]!<%HDI2CB>(B(6.5 $B$KH?1G:Q(B) * $B%(%s%3!<%G%#%s%0$H$7$F(B KOI8(KOI8-R), WIN(CP1251), ALT(CP866) $B$r(B $B%5%]!<%H$7$F$$$^$9!#$3$l$i$O!"%U%m%s%H%(%s%I!"%P%C%/%(%s%I!"(B -- GitLab