[Issue 9776] Make raw write mode the default
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Mon Jun 15 19:22:16 PDT 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=9776
Vladimir Panteleev <thecybershadow at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |thecybershadow at gmail.com
         Resolution|---                         |WONTFIX
--- Comment #4 from Vladimir Panteleev <thecybershadow at gmail.com> ---
I seriously doubt this is going to be changed as long as we use the C I/O API.
Not to mention that this would be a breaking change.
(In reply to Nick Sabalausky from comment #0)
> completely unnecessary on all versions of windows that
> DMD/Phobos supports (ie, at *least* as far back as XP).
Wrong, the Windows console still treats \n as "line feed without carriage
return".
(In reply to Andrej Mitrovic from comment #2)
>     auto file2 = File("test2.txt", "w");
Use "wb" as the file mode, this is what it's for.
(In reply to Nick Sabalausky from comment #3)
>     auto str = cast(string) std.file.read("input.txt");
>     stdout.write(str);
Do not mix C I/O with OS I/O APIs.
--
    
    
More information about the Digitalmars-d-bugs
mailing list