Re: One failing unit test (iconv_read) on git master on OS X

Frediano Ziglio <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <CAHt6W4fxnJfzzSrS5O=hxm0Y-oQv5sTHr-Aom8Gevp7s=-LWzg@mail.gmail.com>
2013/9/16 Marc Abramowitz <[email protected]>:
> And it is not limited to OS X. I just got the tests working on my Ubuntu
> 10 box (it was a configuration problem) and the same test fails, in the
> same way:
>
> vagrant@lucid64:~/dev/git-repos/freetds$ TDSDUMP=stderr
> src/tds/unittests/iconv_fread
> log.c:194:Starting log file for FreeTDS 0.92.dev.20130718
>         on 2013-09-16 08:25:26 with debug flags 0x4fff.
> iconv.c:332:tds_iconv_open(0xe11060, ISO-8859-1)
> iconv.c:189:local name for ISO-8859-1 is ISO-8859-1
> iconv.c:189:local name for UTF-8 is UTF-8
> iconv.c:189:local name for UCS-2LE is UCS-2LE
> iconv.c:189:local name for UCS-2BE is UCS-2BE
> iconv.c:351:setting up conversions for client charset "ISO-8859-1"
> iconv.c:353:preparing iconv for "ISO-8859-1" <-> "UCS-2LE" conversion
> iconv.c:393:preparing iconv for "ISO-8859-1" <-> "ISO-8859-1" conversion
> iconv.c:396:tds_iconv_open: done
> stream.c:219:tds_dynamic_stream_init: stream->allocated = 1024
> bulk.c:1047:tds_bcp_fread: *outbytes = deadbeef
> bulk.c:1048:tds_bcp_fread: tds_dynamic_stream_init => 0
> bulk.c:1059:tds_bcp_fread: calling tds_convert_stream...
> stream.c:99:tds_convert_stream: calling tds_iconv with ol = 1024
> iconv.c:819:tds_iconv: entering for loop...
> iconv.c:821:tds_iconv: top of for loop iteration...
> iconv.c:829:tds_iconv: calling tds_sys_iconv with *inbytesleft = 4078 and
> *outbytesleft = 1024...
> iconv.c:831:tds_iconv: tds_sys_iconv returned irreversible = -1; errno = 7
> iconv.c:853:tds_iconv: errno = 7; breaking
> iconv.c:926:tds_iconv: case E2BIG -- errno = 7
> iconv.c:932:tds_iconv: setting suppress->e2big = 1
> stream.c:104:tds_convert_stream: calling ostream->write with  1024
> stream.c:200:tds_dynamic_stream_write: s->allocated = 3072
> stream.c:106:tds_convert_stream: ostream->write wrote 1024
> stream.c:111:Error: tds_convert_stream: tds_iconv returned errno 7
> stream.c:113:Error: tds_convert_stream: Gave up converting 3054 bytes due
> to error 7.
>

Hi,
  I believe you... I just don't understand why it always worked on my machine!

Frediano
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.