freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "ZIGLIO Frediano" <Frediano.Ziglio AT vodafone.com>
- To: <freetds AT lists.ibiblio.org>
- Subject: [freetds] Small patch
- Date: Fri, 14 Nov 2003 13:41:07 +0100
This patch should fix the problem with db-lib.
* freetds62/doc/api_status.txt: update
* freetds62/src/tds/iconv.c freetds62/src/tds/read.c:
- fix problem with iconv
In iconv.c *inbuf and *inbytesleft were already updated in
skip_one_input_sequence; this caused a E2BIG problem (and also a buffer
overflow in iconv !!!)
I updates also read_and_convert to discard the rest of string if
provided buffer is insufficient. This prevent lost of sync between
FreeTDS and server.
# ./tsql -S**** -Usa
locale is "en_US"
locale charset is "ISO-8859-1"
Password:
Msg 5703, Level 0, State 1, Server ****, Line 0
Changed language setting to us_english.
1> select convert(varchar(3),0x959595)
2> go
Msg 2403, Level 16, State 0, Server OpenClient, Line 0
WARNING! Some character(s) could not be converted into client's
character set. Unconverted bytes were changed to question marks ('?').
???
1>
freddy77
Attachment:
vedi.diff.gz
Description: vedi.diff.gz
-
[freetds] Small patch,
ZIGLIO Frediano, 11/14/2003
- <Possible follow-up(s)>
- RE: [freetds] Small patch, Lowden, James K, 11/14/2003
-
RE: [freetds] Small patch,
Frediano Ziglio, 11/15/2003
- Re: [freetds] read_and_convert() (was: Small patch), James K. Lowden, 11/15/2003
Archive powered by MHonArc 2.6.24.