This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: std::codecvt::out() returns a no-op in marginal situations
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Sam Varshavchik <mrsam at courier-mta dot com>
- Cc: libstdc++ at gcc dot gnu dot org, bop at gmb dot dk
- Date: Mon, 21 Jan 2008 12:30:09 +0100
- Subject: Re: std::codecvt::out() returns a no-op in marginal situations
- References: <cone.1200890899.750603.4283.500@commodore.email-scan.com>
Sam Varshavchik wrote:
> So, if out() returns with:
>
> 1) from_next < from_end, and
>
> 2) to_next < to_end
>
> then can I assume that out() wants a larger output buffer?
In short, I think so. I cannot imagine how things could be different:
one internal element is enough for a meaningful conversion, and you know
you have got it. And you have a partial return value. The only possible
explanation is that the output buffer is too small.
Paolo.