[Issue 4555] Double newlines with std.file.readText
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Mar 21 08:03:10 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=4555
Nick Sabalausky <cbkbbejeap at mailinator.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |cbkbbejeap at mailinator.com
--- Comment #1 from Nick Sabalausky <cbkbbejeap at mailinator.com> 2013-03-21 08:03:08 PDT ---
The 'write' function converts \n to \r\n on windows (And therefore also
converts \r\n to \r\r\n). Is it possible this problem is *just* write and not
readText at all?
Try converting all of the 'write' into 'stdout.rawWrite'. Also, since windows
command line displays *both* \n and \r\n as single newlines, your test should
redirect the output to a file, and then examine the result in either a hex
editor or a code editor that supports displaying line-ending characters (such
as Programmer's Notepad 2).
I suspect this issue may simply be the same as #9776:
http://d.puremagic.com/issues/show_bug.cgi?id=9776
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list