Skip to Content.
Sympa Menu

freetds - Re: [freetds] perl and utf8_2 test

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] perl and utf8_2 test
  • Date: Mon, 15 Jan 2007 10:25:31 -0500

ZIGLIO, Frediano, VF-IT wrote:
> utf8_2 problem is caused from a string error changed from
>
> WARNING! Some character(s) could not be converted into client's
> character set.
>
> to
>
> Buffer overflow converting characters from client into server's
> character set.
>
> well... they seem very differents but IMO previous version was the
> correct one.

This is probably an accident, resulting from my implementation of
tdserror(). I think we want TDSEICONVIU instead. Thank you for finding
it.

> I noted also that severity changed from 16 to 4 for conversions
> problems.

I took the value of EXCONVERSION from Sybase; it's used for things like
SYBECOFL ("Data conversion resulted in overflow"). When I originally
wrote the iconv code, I guess I didn't pass the right values to
tds_client_msg(). Using a severity of 16 is a habit of mine. So the
current severity of 4 is more correct IMO.

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page