bug-gnu-libiconv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnu-libiconv] iconv(3), E2BIG, and outbuf, outbytesleft


From: Jeffrey Walton
Subject: [bug-gnu-libiconv] iconv(3), E2BIG, and outbuf, outbytesleft
Date: Fri, 23 Sep 2011 12:01:40 -0400

Hi All,

I'm working in C++, and I would like to convert string -> wstring.

Is there a way to determine the required output buffer size in advance?

If no, I believe I can loop on inbyteleft. But I can't tell if outbuf
and outbytesleft are updated on when { -1, E2BIG } is returned.  Is
outbuf and outbytesleft updated when the input exceeds the output?

Jeff



reply via email to

[Prev in Thread] Current Thread [Next in Thread]