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 <CAHt6W4cUmFTZbFjEOKU80bJWVP7VZr59K2TdrK3atZhcux=gnw@mail.gmail.com>
2013/9/15 Marc Abramowitz <[email protected]>:
> On 9/15/13 11:24 AM, "Marc Abramowitz" <[email protected]> wrote:
>
>>So perhaps there's only 1024 bytes of space in the output buffer? I'll try
>>to dig in...
>
> Interesting data pointŠ If I make the following change, then it makes the
> iconv_read test pass (although it makes a few other tests fail and one
> hangs):
>
> https://gist.github.com/msabramo/6574246
>

I would call it workaround!

>
>
>
>
> So it appears that it has something to do with it not allocating a big
> enough buffer to not passing the right size.
>

No, libTDS is expected to handle it and reallocate the buffer as
needed. The function is expected to handle whatever file length so
it's not always possible to understand the right size in advance.

Frediano
_______________________________________________
FreeTDS mailing list
[email protected]
http://lists.ibiblio.org/mailman/listinfo/freetds
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.