[Jon Willeke] I'm attaching a few tweaks to build psqlodbc with Unicode support on...
authorDave Page <dpage@pgadmin.org>
Wed, 4 Feb 2004 08:55:28 +0000 (08:55 +0000)
committerDave Page <dpage@pgadmin.org>
Wed, 4 Feb 2004 08:55:28 +0000 (08:55 +0000)
commit0c81a67ce2830dbc1ceb97616040004d8baebd22
tree9abfbb2a48121b1f4fa1c1bd72e4f8290a81984a
parent01d10c233df6a83597f89e66b5481636bdcf8f3c
[Jon Willeke] 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.
Makefile.am
configure.ac
convert.c
execute.c
info.c
info30.c
psqlodbc.h
win_unicode.c