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 941F4DA80B for ; Wed, 9 Nov 2005 17:06:07 -0400 (AST) 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 89791-04 for ; Wed, 9 Nov 2005 21:06:05 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from anchor-post-32.mail.demon.net (anchor-post-32.mail.demon.net [194.217.242.90]) by svr1.postgresql.org (Postfix) with ESMTP id 0B7D6DA76F for ; Wed, 9 Nov 2005 17:06:04 -0400 (AST) Received: from mailgate.vale-housing.co.uk ([194.217.48.34] helo=vale-housing.co.uk) by anchor-post-32.mail.demon.net with esmtp (Exim 4.42) id 1EZx8t-000KFW-8E for pgsql-odbc@postgresql.org; Wed, 09 Nov 2005 21:06:03 +0000 Received: from 84.13.50.39 ([84.13.50.39]) by ratbert.vale-housing.co.uk ([192.168.1.106]) with Microsoft Exchange Server HTTP-DAV ; Wed, 9 Nov 2005 21:06:03 +0000 User-Agent: Microsoft-Entourage/11.2.1.051004 Date: Wed, 09 Nov 2005 21:06:02 +0000 Subject: Re: psqlODBC 08.01.0100 Released From: Dave Page To: Peter Eisentraut , Message-ID: Thread-Topic: [ODBC] psqlODBC 08.01.0100 Released Thread-Index: AcXlcWPlomDSNFFkEdqY4AARJHpWaA== In-Reply-To: <200511092128.04347.peter_e@gmx.net> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.373 required=5 tests=[AWL=0.120, RCVD_NUMERIC_HELO=1.253] X-Spam-Score: 1.373 X-Spam-Level: * X-Archive-Number: 200511/96 X-Sequence-Number: 6333 On 9/11/05 8:28 pm, "Peter Eisentraut" wrote: > Dave Page wrote: >> From this release, two versions of the driver are provided for >> Windows, 'PostgreSQL ANSI' which supports single and multibyte >> applications through the ANSI ODBC API, and 'PostgreSQL Unicode' >> which provides Unicode support through the Unicode ODBC API. On Unix >> systems, the driver type may be selected via a configure option. > > With my packager hat on, I'm puzzled by this. I am now supposed to > produce two shared libraries? I thought the idea was to have both sets > of functions in one binary and let the driver manager or application > program figure out which to call. This was discussed in depth a few months back. The Unicode driver will only work with Unicode data or non-unicode data that maps directly into the first unicode page (or whatever the correct term is). Non-ASCII charsets don't work correctly with the Unicode driver as a result. Drivers such as the Microsoft SQL Server driver handle this by having an option to map strings on the fly from the client encoding into unicode. It has to be done this way because if the Unicode functions exist, the driver manager will *always* map all function calls to those instead of the ANSI versions. To get around this without providing our own remapping of non-unicode data, the driver was reverted back to the way it was in the 07.xx series - ie. Having a Unicode and ANSI version on Windows. On Unix, the --enable/disable-unicode option that you added some time back was reinstated. The net result of this change was that a whole heap of complaints from people using latin* as their client encoding went away overnight. I've made no secret of the fact that I know little of encoding issues however, so if you have a better way to handle this then please speak up! Regards, Dave