Ignore:
Timestamp:
Oct 3, 2018, 10:12:19 PM (7 years ago)
Author:
Ross Kirsling
Message:

[JSC] print() changes CRLF to CRCRLF on Windows
https://bugs.webkit.org/show_bug.cgi?id=190228

Reviewed by Mark Lam.

  • jsc.cpp:

(main):
Ultimately, this is just the normal behavior of printf in text mode on Windows.
Since we're reading in files as binary, we need to be printing out as binary too
(just as we do in DumpRenderTree and ImageDiff.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/jsc.cpp

    r236814 r236827  
    9191#if OS(WINDOWS)
    9292#include <direct.h>
     93#include <fcntl.h>
     94#include <io.h>
    9395#include <wtf/text/win/WCharStringExtras.h>
    9496#else
     
    22322234    ::SetErrorMode(0);
    22332235
     2236    _setmode(_fileno(stdout), _O_BINARY);
     2237    _setmode(_fileno(stderr), _O_BINARY);
     2238
    22342239#if defined(_DEBUG)
    22352240    _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR);
Note: See TracChangeset for help on using the changeset viewer.