Changeset 127


Ignore:
Timestamp:
Sep 1, 2010, 6:32:39 PM (15 years ago)
Author:
dmik
Message:

hotspot: Don't set mode of stdin/out/err to O_BINARY to have warnings and errors correctly printed to the console (assumed that it doesn't break anything in Java).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk/hotspot/src/os/windows/vm/os_windows.cpp

    r113 r127  
    32983298
    32993299void os::win32::setmode_streams() {
     3300  // On OS/2, the console requires "\r\n" to start a new line so avoid setting
     3301  // O_BINARY there. Let's assume this does not break anything in Java for now.
     3302#ifndef __WIN32OS2__
    33003303  _setmode(_fileno(stdin), _O_BINARY);
    33013304  _setmode(_fileno(stdout), _O_BINARY);
    33023305  _setmode(_fileno(stderr), _O_BINARY);
     3306#endif
    33033307}
    33043308
Note: See TracChangeset for help on using the changeset viewer.