From edfb9e0d3456268f308260fc3ba080205dc58846 Mon Sep 17 00:00:00 2001 From: "David G. Holm" Date: Fri, 10 Sep 1999 18:34:31 +0000 Subject: [PATCH] See ChangeLog entry 19990910-14:20 EDT David G. Holm --- harbour/ChangeLog | 7 +++++++ harbour/source/rtl/console.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 5e31ba7623..b923ab06c0 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,10 @@ +19990910-14:20 EDT David G. Holm + * source/rtl/console.c + ! Uncommented two calls to hb_fsSetDevMode() in hb_consoleInitialize() + which force the stdout and stderr handles to binary mode for Clipper + compatibility. There was no explanation in the ChangeLog as to why + the two calls had been commented out. + 19990910-14:15 EDT David G. Holm * tests/working/Makefile ! Moved statinit.prg to BAD_PRG_SOURCES, because it won't link. diff --git a/harbour/source/rtl/console.c b/harbour/source/rtl/console.c index 882d26c8a9..db43b46223 100644 --- a/harbour/source/rtl/console.c +++ b/harbour/source/rtl/console.c @@ -108,8 +108,8 @@ void hb_consoleInitialize( void ) /* Some compilers open stdout and stderr in text mode, but Harbour needs them to be open in binary mode. */ -// hb_fsSetDevMode( fileno( stdout ), FM_BINARY ); -// hb_fsSetDevMode( fileno( stderr ), FM_BINARY ); + hb_fsSetDevMode( fileno( stdout ), FM_BINARY ); + hb_fsSetDevMode( fileno( stderr ), FM_BINARY ); #ifdef HARBOUR_USE_GTAPI hb_gtInit();