From c2b2b5df90cde4390190d71e8813c2615f08d612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Czerpak?= Date: Mon, 7 Sep 2015 16:28:19 +0200 Subject: [PATCH] 2015-09-07 16:28 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * src/rtl/gtos2/gtos2.c * added missing modification in previous commit --- ChangeLog.txt | 4 ++++ src/rtl/gtos2/gtos2.c | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog.txt b/ChangeLog.txt index 3ea1e9c2cd..cead7fc7ea 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -10,6 +10,10 @@ * Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment */ +2015-09-07 16:28 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) + * src/rtl/gtos2/gtos2.c + * added missing modification in previous commit + 2015-09-07 16:19 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * src/rtl/gtos2/gtos2.c + added support for HB_GTI_CODEPAGE diff --git a/src/rtl/gtos2/gtos2.c b/src/rtl/gtos2/gtos2.c index 395e178ff2..4acad77b4b 100644 --- a/src/rtl/gtos2/gtos2.c +++ b/src/rtl/gtos2/gtos2.c @@ -564,12 +564,20 @@ static void hb_gt_os2_Init( PHB_GT pGT, HB_FHANDLE hFilenoStdin, HB_FHANDLE hFil is equal to 437 */ + /* 2015-09-07 If someone wants to use CP437 regardless of default OS2 + settings then he should add to his code: + hb_gtInfo( HB_GTI_CODEPAGE, 437 ) + [druzus] + */ + VioGetCp( 0, &s_usOldCodePage, 0 ); +#if 0 /* If I could not set codepage 437 I reset previous codepage, maybe I do not need to do this */ if( VioSetCp( 0, 437, 0 ) != NO_ERROR ) VioSetCp( 0, s_usOldCodePage, 0 ); +#endif hb_gt_os2_GetCursorPosition( &s_iCurRow, &s_iCurCol ); s_iCursorStyle = hb_gt_os2_GetCursorStyle();