pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Page <dpage@vale-housing.co.uk>
To: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-odbc@postgresql.org
Subject: Re: psqlODBC 08.01.0100 Released
Date: Wed, 09 Nov 2005 21:06:02 +0000
Message-ID: <BF98153A.5393%dpage@vale-housing.co.uk> (raw)
In-Reply-To: <200511092128.04347.peter_e@gmx.net>




On 9/11/05 8:28 pm, "Peter Eisentraut" <peter_e@gmx.net> 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 





view thread (3+ messages)

Message-ID: <BF98153A.5393%dpage@vale-housing.co.uk>
Permalink:  ../BF98153A.5393%25dpage@vale-housing.co.uk/
Also on:    postgresql.org/message-id/BF98153A.5393%dpage@vale-housing.co.uk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: dpage@vale-housing.co.uk, peter_e@gmx.net
  Subject: Re: psqlODBC 08.01.0100 Released
  In-Reply-To: <BF98153A.5393%dpage@vale-housing.co.uk>
  References: <200511092128.04347.peter_e@gmx.net> <BF98153A.5393%dpage@vale-housing.co.uk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox