[Issue 8730] writeln stops on a nul character, even if passed a D string

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 16 03:13:34 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=8730



--- Comment #8 from Musashi Tamura <yuri.musashi.miwa.tamura at gmail.com> 2013-12-16 03:13:29 PST ---
This problem is only in "std.stdio.writeln".
"std.stdio.File.writeln" doesn't have it.

// abc.d
import std.stdio;
void main() {
    writeln("test\0gone"); // output "test\n"
    stdout.writeln("test\0gone"); // output "test\0gone\n"
}

$ rdmd abc | od -a
0000000   t   e   s   t  nl   t   e   s   t nul   g   o   n   e  nl
0000017

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list