[Issue 12493] std.file.readText doesn't convert Windows newlines correctly

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 4 10:20:57 PDT 2014


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



--- Comment #8 from bearophile_hugs at eml.cc 2014-04-04 10:20:54 PDT ---
(In reply to comment #7)

> Which is why I'm curious how bearophile got that program to print interleaving
> lines in the first place.

Let's see. If I add a print of the bytes, like this:


void main() {
    import std.stdio;
    import std.file: readText;
    auto t = readText("text.txt");
    writef("%(%d %)", t);
}


The output is:

116 104 105 115 13 10 105 115 13 10 97 13 10 116 101 115 116

Is your output the same?

-- 
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