pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jon Willeke <willeke@users.sourceforge.net>
To: pgsql-odbc@postgresql.org
Subject: experimental Unicode support
Date: Mon, 02 Feb 2004 18:23:11 -0500
Message-ID: <20040202232202.D62FF790@mail.intersystems.com> (raw)

I'm attaching a few tweaks to build psqlodbc with Unicode support on 
Unix.  I changed some code that assumes two-byte SQLWCHAR and I changed 
configure.ac and Makefile.am, as necessary.

I tested this with unixODBC 2.2.7 on SuSE Linux 8.2.  I built unixODBC 
--with-iconv-ucode-enc=UCS-4LE and with SQL_WCHART_CONVERT defined, so that 
SQLWCHAR is wchar_t.  I have not tested it with UCS-2 / unsigned short.

I also tested this with iODBC 3.51.1, which always uses wchar_t on Unix.

One caveat, if anyone actually plays with this: sqlext.h should include 
sqlucode.h, so I haven't patched psqlodbc to do so.  The next release of 
unixODBC will contain this fix, and I've mentioned it to the iODBC maintainer.

I realize that the demand for Unicode ODBC on Unix for PostgreSQL is pretty 
small.  Nonetheless, I've learned a few things poking around the code, and 
I figured someone might be interested.

Attachments:

  psqlodbc-uni.patch.gz (application/octet-stream, 3.1K) download

view thread (5+ messages)  latest in thread

Message-ID: <20040202232202.D62FF790@mail.intersystems.com>
Permalink:  ../20040202232202.D62FF790@mail.intersystems.com/
Also on:    postgresql.org/message-id/20040202232202.D62FF790@mail.intersystems.com

 · 

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: willeke@users.sourceforge.net
  Subject: Re: experimental Unicode support
  In-Reply-To: <20040202232202.D62FF790@mail.intersystems.com>
  References: <20040202232202.D62FF790@mail.intersystems.com>

* 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