On Mon, 23 May 2011 05:21:04 +0300, Robert Jacques <[email protected]> wrote:

Appender doesn't validate UTF when the character widths are the same.

Yes it does. That's what I've been trying to explain this entire subthread.

import std.array;

void main()
{
        string invalid = "\xAA\xBB\xCC\xDD\xEE\xFF";
        
        string str; str ~= invalid; // OK

        auto app = appender!string(); app.put(str); // throws
}


--
Best regards,
 Vladimir                            mailto:[email protected]

Reply via email to