Commit 90614c1e authored by vestbo@webkit.org's avatar vestbo@webkit.org

[Qt] Set stdout/stderr to binary mode for DRT on Windows

Reviewed by Kenneth Rohde Christiansen.

This makes sure we don't end up with lots of CRLFs in the
DRT output, which breaks tons of results. Matches what
the Windows DRT does.

* DumpRenderTree/qt/main.cpp:

git-svn-id: svn://svn.chromium.org/blink/trunk@54496 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 5225949d
2010-02-08 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
Reviewed by Kenneth Rohde Christiansen.
[Qt] Set stdout/stderr to binary mode for DRT on Windows
This makes sure we don't end up with lots of CRLFs in the
DRT output, which breaks tons of results. Matches what
the Windows DRT does.
* DumpRenderTree/qt/main.cpp:
2010-02-08 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
Reviewed by Kenneth Rohde Christiansen.
......
......@@ -48,6 +48,11 @@
#include <fontconfig/fontconfig.h>
#endif
#ifdef Q_OS_WIN
#include <io.h>
#include <fcntl.h>
#endif
#include <limits.h>
#include <signal.h>
......@@ -101,6 +106,11 @@ static NO_RETURN void crashHandler(int sig)
int main(int argc, char* argv[])
{
#ifdef Q_OS_WIN
_setmode(1, _O_BINARY);
_setmode(2, _O_BINARY);
#endif
#ifdef Q_WS_X11
FcInit();
WebCore::DumpRenderTree::initializeFonts();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment