-Original Message-
From: Martin Sebor [mailto:[EMAIL PROTECTED] On Behalf Of Martin Sebor
Sent: Tuesday, March 11, 2008 5:42 PM
To: dev@stdcxx.apache.org
Cc: Eric Lemings; Martin Sebor
Subject: Re: STDCXX-435
I don't think it's that simple. IIRC, the problem is that we're using
Eric Lemings wrote:
[...]
Right. And I believe that limit is
min(__from_end-__from, __to_limit-__to)
Suppose MB_CUR_MAX=4, the size of the source sequence is 1 byte
(with no terminating NUL), and the byte doesn't form a complete
multibyte character. There's no way to tell the
-Original Message-
From: Martin Sebor [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 12, 2008 10:52 AM
To: dev@stdcxx.apache.org
Subject: Re: STDCXX-435
Eric Lemings wrote:
[...]
Right. And I believe that limit is
min(__from_end-__from, __to_limit-__to
I don't think it's that simple. IIRC, the problem is that we're using
mbsrtowcs() on sequences that aren't guaranteed to be NUL-terminated.
It seems that it should be straightforward to either specify a limit
to mbsrtowcs() that's small enough so as to prevent the function from
ever reaching the