X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6810DDA87F for ; Thu, 22 Sep 2005 12:22:11 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 99350-02 for ; Thu, 22 Sep 2005 15:22:09 +0000 (GMT) Received: from inetrt.skcapi.co.jp (inetrt.skcapi.co.jp [219.163.131.10]) by svr1.postgresql.org (Postfix) with ESMTP id 0083DDA813 for ; Thu, 22 Sep 2005 12:22:08 -0300 (ADT) Received: from hiroshi5jz7dqj (firewall.skcapi.co.jp [219.163.131.14]) by inetrt.skcapi.co.jp (8.13.1/8.13.1) with SMTP id j8MFJoEO056561; Fri, 23 Sep 2005 00:19:51 +0900 (JST) (envelope-from saito@inetrt.skcapi.co.jp) Message-ID: <03a301c5bf89$64353300$01324d80@hiroshi5jz7dqj> From: "Hiroshi Saito" To: =?koi8-r?B?4c7E0sXKIPLF0MvP?= Cc: References: <032801c5bf75$7563a2b0$01324d80@hiroshi5jz7dqj> <791807001.20050922170401@sart.must-ipra.com> Subject: Re: client encoding mismatch Date: Fri, 23 Sep 2005 00:22:06 +0900 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_03A0_01C5BFD4.D409C830" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.021 required=5 tests=[AWL=0.021] X-Spam-Level: X-Archive-Number: 200509/173 X-Sequence-Number: 6071 This is a multi-part message in MIME format. ------=_NextPart_000_03A0_01C5BFD4.D409C830 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 8bit Hi Андрей. Sorry. I understood the problem. Please check it Dave. Thank you. Regards, Hiroshi Saito > Hm, may be I do something wrong :( > But. > 1. initdb was run with locale C and DB encoding WIN1251. > 2. I setup new .msi from Dave v. 08.01.0005. > 3. psql -> CREATE DATABASE db_1 ENCODING 'win1251'; > 4. Add datasource "PostgreSQL ANSI", without any changes of settings > (only all logs on) named db_1 > 5. Create empty .udl file, select db_1 and just press Test > connection. > 6. Get Error that finished by 'client encoding mismatch'; > :( > To files with full logs attached. > > >> > Hiroshi - can you use win1251 with your patch? > >> > > HS> Please carry out by the method of not setting option. ------=_NextPart_000_03A0_01C5BFD4.D409C830 Content-Type: application/octet-stream; name="encoding_patch2.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="encoding_patch2.diff" --- multibyte.c.orig Thu Sep 22 23:50:56 2005=0A= +++ multibyte.c Fri Sep 23 00:11:56 2005=0A= @@ -28,7 +28,7 @@=0A= { "EUC_KR", EUC_KR },=0A= { "EUC_TW", EUC_TW },=0A= { "JOHAB", JOHAB },=0A= - { "UNICODE", UTF8 },=0A= + { "UNICODE", UNICODE },=0A= { "UTF8", UTF8 }, /* Corresponding from Version 8.1 */=0A= { "MULE_INTERNAL",MULE_INTERNAL },=0A= { "LATIN1", LATIN1 },=0A= @@ -42,13 +42,13 @@=0A= { "LATIN9", LATIN9 },=0A= { "LATIN10", LATIN10 },=0A= { "WIN1256", WIN1256 },=0A= - { "TCVN", WIN1258 },=0A= + { "TCVN", TCVN },=0A= { "WIN1258", WIN1258 }, /* Corresponding from Version 8.1 */=0A= { "WIN874", WIN874 },=0A= { "KOI8", KOI8R },=0A= - { "WIN", WIN1251 },=0A= + { "WIN", WIN },=0A= { "WIN1251", WIN1251 }, /* Corresponding from Version 8.1 */=0A= - { "ALT", WIN866 },=0A= + { "ALT", ALT },=0A= { "WIN866", WIN866 }, /* Corresponding from Version 8.1 */=0A= { "ISO_8859_5", ISO_8859_5 },=0A= { "ISO_8859_6", ISO_8859_6 },=0A= --- multibyte.h.orig Thu Sep 22 23:51:05 2005=0A= +++ multibyte.h Fri Sep 23 00:14:09 2005=0A= @@ -44,6 +44,12 @@=0A= #define UHC 31 /* UHC */=0A= #define WIN1250 32 /* windows-1250 */=0A= #define GB18030 33 /* GB18030 */=0A= +=0A= +#define UNICODE 34 /* UNICODE ( < Ver8.1) */=0A= +#define TCVN 35 /* TCVN ( < Ver8.1) */=0A= +#define ALT 36 /* ALT ( < Var8.1) */=0A= +#define WIN 37 /* WIN ( < Ver8.1) */=0A= +=0A= #define OTHER -1=0A= =0A= #define MAX_CHARACTERSET_NAME 24=0A= ------=_NextPart_000_03A0_01C5BFD4.D409C830--