X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id DE963D1B456 for ; Tue, 23 Dec 2003 05:18:53 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 31902-10 for ; Tue, 23 Dec 2003 01:18:04 -0400 (AST) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by svr1.postgresql.org (Postfix) with SMTP id AC0B8D1B45C for ; Tue, 23 Dec 2003 01:18:01 -0400 (AST) Received: (qmail 23666 invoked from network); 23 Dec 2003 14:18:00 +0900 Received: from unknown (HELO viscomail.tpf.co.jp) (100.0.0.108) by sd2.tpf-fw-c.co.jp with SMTP; 23 Dec 2003 14:18:00 +0900 Received: from tpf.co.jp ([126.0.1.67]) by viscomail.tpf.co.jp (8.8.8+Sun/8.8.8) with ESMTP id OAA11810; Tue, 23 Dec 2003 14:17:59 +0900 (JST) Message-ID: <3FE7D0A8.9D5BC206@tpf.co.jp> Date: Tue, 23 Dec 2003 14:20:40 +0900 From: Hiroshi Inoue X-Mailer: Mozilla 4.73 [ja] (Windows NT 5.0; U) X-Accept-Language: ja MIME-Version: 1.0 To: zisi1@gmx.net Cc: pgsql-odbc@postgresql.org Subject: Re: psqlodbc30w.dll: wrong string termination after SQLFetch for References: <29530.1071567733@www8.gmx.net> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/75 X-Sequence-Number: 3613 zisi1@gmx.net wrote: > > Hi, > > I have the problem described below in an ODBC application which > occurs only with PostgreSQL and PostgreSQL-ODBC drivers: > > When I fetch string data via ODBC of a column with the "text" > datatype (but also when the datatype is "varchar") of a unicode > encoded database into a SQLWCHAR-buffer, the string termination > in the out-buffer is set wrong, as only the first byte of the > string-termination is set to 0 (i.e., SQLWCHAR character at > relevant position is 0xcdcd before fetch, and set to 0xcd00 after > fetch instead of 0x000). Could you try the dll at http://www.geocities.jp/inocchichichi/psqlodbc/ ? regards, Hiroshi Inoue