Win32 fixes: redirection and file codepage
This commit is contained in:
parent
d95538c3e5
commit
59fd0e8f84
@ -29,3 +29,7 @@ ls bin/
|
||||
|
||||
You have to get ged{short-patform-name}, gn{short-patform-name}, and
|
||||
rddt{short-patform-name}. If so, you did it!
|
||||
|
||||
When building in DJGPP environment you may wish to patch libc with djlocale
|
||||
patch which may be found on http://asa.i-connect.com/djlocale.zip. This patch
|
||||
intended for those who worried about NLS support.
|
||||
|
@ -9,7 +9,22 @@ ______________________________________________________________________
|
||||
|
||||
______________________________________________________________________
|
||||
|
||||
Notes for GoldED+ 1.1.4.7, November xx 2000
|
||||
Notes for GoldED+ 1.1.5, December xx 2000
|
||||
______________________________________________________________________
|
||||
|
||||
- Fixed incorrect filenames displaying in /w32 version.
|
||||
|
||||
- Fixed crash of Win32 version when output/input redirected to/from
|
||||
file.
|
||||
|
||||
- Fixed case sensivity in macro expansion.
|
||||
|
||||
- Fixed insertion of extra space before Origin line if entry is taken
|
||||
from file.
|
||||
|
||||
______________________________________________________________________
|
||||
|
||||
Notes for GoldED+ 1.1.4.7, December 02 2000
|
||||
______________________________________________________________________
|
||||
|
||||
- It is now possible to use filepicker if there's very long filenames.
|
||||
|
@ -132,7 +132,9 @@ void GKbd::Init() {
|
||||
osversion.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
|
||||
GetVersionEx(&osversion);
|
||||
gkbd_nt = (osversion.dwPlatformId & VER_PLATFORM_WIN32_NT) ? true : false;
|
||||
gkbd_hin = GetStdHandle(STD_INPUT_HANDLE);
|
||||
gkbd_hin = CreateFile("CONIN$", GENERIC_READ | GENERIC_WRITE,
|
||||
FILE_SHARE_READ | FILE_SHARE_WRITE, NULL,
|
||||
OPEN_EXISTING, 0, NULL);
|
||||
GetConsoleMode(gkbd_hin, &gkbd_kbdmode);
|
||||
if(gkbd_kbdmode & KBD_TEXTMODE)
|
||||
SetConsoleMode(gkbd_hin, gkbd_kbdmode & ~KBD_TEXTMODE);
|
||||
|
@ -130,6 +130,7 @@ int g_init_os(int flags) {
|
||||
memset(&WinVer, 0, sizeof(OSVERSIONINFO));
|
||||
WinVer.dwOSVersionInfoSize = sizeof (OSVERSIONINFO);
|
||||
GetVersionEx(&WinVer);
|
||||
SetFileApisToOEM();
|
||||
GetConsoleTitle(ge_win_coldtitle, sizeof(ge_win_coldtitle));
|
||||
if(WinVer.dwPlatformId == VER_PLATFORM_WIN32_NT) {
|
||||
for(i = 0; i < 256; i++) {
|
||||
|
@ -393,7 +393,11 @@ int GVid::detectadapter() {
|
||||
|
||||
#elif defined(__WIN32__)
|
||||
|
||||
gvid_hout = GetStdHandle(STD_OUTPUT_HANDLE);
|
||||
gvid_hout = CreateFile("CONOUT$", GENERIC_READ | GENERIC_WRITE,
|
||||
FILE_SHARE_WRITE | FILE_SHARE_READ, NULL,
|
||||
OPEN_EXISTING,
|
||||
FILE_FLAG_NO_BUFFERING|FILE_FLAG_WRITE_THROUGH, NULL);
|
||||
// gvid_hout = GetStdHandle(STD_OUTPUT_HANDLE);
|
||||
|
||||
adapter = V_VGA;
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
|
||||
// This may look like C code, but it is really -*- C++ -*-
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user