pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joel Kiger <kiger.joel@cimcor.com>
To: dpage@vale-housing.co.uk
To: pgsql-odbc@postgresql.org
Subject: Re: MAC OSX copy_and_convert_field bug for SQL_W_CHAR
Date: Thu, 20 Oct 2005 13:01:22 -0500
Message-ID: <HCEBICIPILCHNGDLHKGJKEFACIAA.kiger.joel@cimcor.com> (raw)
In-Reply-To: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4CC35F4@ratbert.vale-housing.co.uk>

I has not too much luck with version 08.01.0005, but however by commenting
out #define HAVE_LOCALE_H 1 in config.h it does seem to be owrking for the
time being, at least with ASCII characters.

Thanks for your help.

-----Original Message-----
From: pgsql-odbc-owner@postgresql.org
[mailto:pgsql-odbc-owner@postgresql.org]On Behalf Of Dave Page
Sent: Thursday, October 20, 2005 8:58 AM
To: Joel Kiger; pgsql-odbc@postgresql.org
Subject: Re: [ODBC] MAC OSX copy_and_convert_field bug for SQL_W_CHAR




> -----Original Message-----
> From: pgsql-odbc-owner@postgresql.org
> [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Joel Kiger
> Sent: 20 October 2005 14:47
> To: pgsql-odbc@postgresql.org
> Subject: [ODBC] MAC OSX copy_and_convert_field bug for SQL_W_CHAR
>
> I am currently using Postgre 8.0 with the 8.00.0102 ODBC
> driver with IODBC
> 3.52.2.  I can not get SQLGetData to return any valid data
> when the Ctype is
> SQL_W_CHAR (SQL_C_CHAR workds fine).  At line 887 of
> convert.c (for (i = 0,
> j =0; ptr[i]; i++)) I believe I found a bug dealing with the
> byte order of a
> Mac.  The variable pre is point to the following data:
>
> 0xb015f0:       0x0000  0x0039  0x0000  0x0039  0x0000  0x0039  0x0000
> 0x0039
>
> Basicaly "9999" in 2 byte unicode (Note that Macs are 4 byte unicode).
> Since ptr is a const char* it never goes into the for
> statement to copy the
> data.  This is the case for numeric fields in the database I
> can only assume
> character fields have a similiar issue.  Has any one else
> seen this problem?

Not sure about that specific problem, but a lot of time has gone into
fixing unicode recently. Please try the latest snapshot build
08.01.0005.

Regards, Dave.

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend




view thread (4+ messages)  latest in thread

Message-ID: <HCEBICIPILCHNGDLHKGJKEFACIAA.kiger.joel@cimcor.com>
Permalink:  ../HCEBICIPILCHNGDLHKGJKEFACIAA.kiger.joel@cimcor.com/
Also on:    postgresql.org/message-id/HCEBICIPILCHNGDLHKGJKEFACIAA.kiger.joel@cimcor.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: kiger.joel@cimcor.com, dpage@vale-housing.co.uk
  Subject: Re: MAC OSX copy_and_convert_field bug for SQL_W_CHAR
  In-Reply-To: <HCEBICIPILCHNGDLHKGJKEFACIAA.kiger.joel@cimcor.com>
  References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4CC35F4@ratbert.vale-housing.co.uk> <HCEBICIPILCHNGDLHKGJKEFACIAA.kiger.joel@cimcor.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