RE: [dbi] Unicode-Patch for DBD::ODBC
- From: jurlwin@xxxxxxxxxxxx (Jeff Urlwin)
- Date: Fri, 14 Apr 2006 06:20:12 -0400
Please let me know what you come up with for a final patch and I will
try to incorporate this weekend...
-----Original Message-----later.
From: Alexander Foken [mailto:alexander@xxxxxxxx]
Sent: Tuesday, March 21, 2006 2:56 AM
To: Martin J. Evans
Cc: dbi-users@xxxxxxxx
Subject: Re: [dbi] Unicode-Patch for DBD::ODBC
Hello Martin,
just a quick reply, I'm in a hurry, so please let me verify this
showed:
Yes, this really looks wrong. But if I remember right, there was a
reason for the "+". I think I (ab)used phs->sv to store Unicode in a
char[], so I just made sure there was enough room for the trailing
U+0000. If that's right, phs->maxlen counts bytes, not characters.
Or maybe I really missed the Shift key twice. ;-)
Alexander
Martin J. Evans wrote:
Alexander,
Thanks for this. I've not had a chance to try it but a quick scan
out -
- SvGROW(phs->sv, (phs->maxlen < 28) ? 28 : phs->maxlen+1);
+ SvGROW(phs->sv, (phs->maxlen+sizeof(WCHAR) < 28) ? 28 :
phs->maxlen+sizeof(WCHAR));
Only because I was looking at this very line the other day it stood
patchshould that be "*sizeof(WCHAR)".
Martin
--
Martin J. Evans
Easysoft Ltd, UK
http://www.easysoft.com
On 15-Mar-2006 Alexander Foken wrote:
Hello DBI-users,
I've written a first patch for DBD::ODBC to support Unicode. The
atwas developed to make a custom project management software work with
Unicode on Win32 with Microsoft's SQL Server via ODBC. It is in use
detailedseveral clients since about six months. So far, no bugs have been
reported for the modified DBD::ODBC driver.
The patch is available for download at from
http://www.alexander-foken.de/unicode-patch.txt.gz. You find
atinformation in the README.unicode-patch file, HTML version available
thehttp://www.alexander-foken.de/README.unicode-patch.html.
Please remember to read the README.unicode-patch file, especially
things"Known Problems" section. There are still some rough edges where
work different than you may expect.
Alexander
--
Alexander Foken
mailto:alexander@xxxxxxxx http://www.foken.de/alexander/
--
Alexander Foken
mailto:alexander@xxxxxxxx http://www.foken.de/alexander/
.
- Prev by Date: Re: OCI errors using DBD-Oracle, Instant Client, and packaged using pp
- Next by Date: Re: Running DBI, ODBC in the crontab
- Previous by thread: dump_results
- Next by thread: Bad int8 external representation "" (SQL-HY000) (DBD: st_execute/SQL_Execute err=-1
- Index(es):
Relevant Pages
|