http://d.puremagic.com/issues/show_bug.cgi?id=8730
Summary: writeln stops on a nul character, even if passed a D
string
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P2
Component: Phobos
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Adam D. Ruppe <[email protected]> 2012-09-26
13:12:00 PDT ---
import std.stdio;
void main() {
writeln("test\0gone");
}
only prints "test". writefln("%s") prints the whole thing.
$ ./test | xxd
0000000: 7465 7374 0a
as you can see the data is indeed not being printed; it isn't just invisible on
my screen.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------