Skip site navigation (1) Skip section navigation (2)

Re: Unicode support

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Hiroshi Saito" <saito(at)inetrt(dot)skcapi(dot)co(dot)jp>,"Anoop Kumar" <anoopk(at)pervasive-postgres(dot)com>
Cc: <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: Unicode support
Date: 2005-08-31 11:31:47
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-odbc

> -----Original Message-----
> From: pgsql-odbc-owner(at)postgresql(dot)org 
> [mailto:pgsql-odbc-owner(at)postgresql(dot)org] On Behalf Of Dave Page
> Sent: 31 August 2005 08:20
> To: Hiroshi Saito; Anoop Kumar
> Cc: pgsql-odbc(at)postgresql(dot)org
> Subject: Re: [ODBC] Unicode support
> OK, I'll prepare a patch, and because it's an odd problem, a 
> test build
> to go with it. Any voluteers to test? It really needs people with a
> reproducable encoding error that doesn't existing in 07.xx, or people
> using BDE (which barfs bigtime on SQL_C_Wxxx data).

OK, patch attached. This works slightly differently than I envisaged,
because simply switching off Unicode isn't that straight forward,
especially if the DM is using the *W functions.

Basically what this does is only offer wide character types if the
database is unicode, and, in that case, sets the client encoding to
unicode. For anything else, it will report non-wide character types as
per the 07 driver, and let the user set their own encoding as required.
>From what I can tell of the BDE missing fields problem, this should
almost certainly fix it.

Please look at this carefully - as most of you know, MB/Unicode issues
aren't exactly my strong point!

I'll forward test DLLs to volunteer victims privately.

Regards, Dave.

Attachment: widetypes.diff
Description: application/octet-stream (6.9 KB)


pgsql-odbc by date

Next:From: Cleber NardelliDate: 2005-08-31 11:35:03
Subject: Re: [Fwd: Re: Transactions and SavePoints]
Previous:From: Johann ZuschlagDate: 2005-08-31 08:00:33
Subject: Re: Unicode support

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group