DustMite, a D test case minimization tool

Robert Jacques sandford at jhu.edu
Sun May 22 21:41:22 PDT 2011


On Sun, 22 May 2011 22:31:51 -0400, Vladimir Panteleev  
<vladimir at thecybershadow.net> wrote:

> On Mon, 23 May 2011 05:21:04 +0300, Robert Jacques <sandford at jhu.edu>  
> 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?


More information about the Digitalmars-d mailing list