On Sun, 22 May 2011 22:31:51 -0400, Vladimir Panteleev
<[email protected]> wrote:
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
}
Well, all I can say is that it doesn't throw on my install. (Windows, DMD
2.052) for either the patched nor un-patched appender implementation. What
version are you using?