ANSI - output with phobos

Deewiant deewiant.doesnotlike.spam at gmail.com
Wed Apr 4 07:56:40 PDT 2007


me wrote:
>> for(char c = 0; c < c.max; c++)
>>     writefln(c);
>>
>> In a not too distant past the above code could produce the entire ANSI table, however this is not the case today. Today it peters out at 127 and any code beyond that cannot be desplayed. The error message produced is:
>>
>>   Error: 4invalid UTF-8 sequence
>>
>> Please provide some guidance on how to accomplish this in present D.
>>
> 
> 
> First let me apologize for the double post.
> 
> I am aware that printf() can still be used to achieve the desired result. However, I知 interested in accomplishing this through writef()/writefln();
> 

Not possible. Just use the C library, writing a wrapper around it if you don't
want to worry about whether strings are zero-terminated all the time.

-- 
Remove ".doesnotlike.spam" from the mail address.


More information about the Digitalmars-d-learn mailing list