Changeset 3548 for trunk/src/grep/src
- Timestamp:
- Jan 29, 2022, 3:41:10 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/grep/src/grep.c
r3537 r3548 534 534 g_fStdOutIsConsole = GetConsoleMode (s_hStdOut, &fModeIgnored) 535 535 ? TRUE : FALSE; 536 if (getenv("KMK_GREP_CONSOLE_DEBUG")) 537 fprintf(stderr, "kmk_grep: g_fStdOutIsConsole=%d s_hStdOut=%p codepage=%u\n", 538 g_fStdOutIsConsole, s_hStdOut, ___lc_codepage_func()); 536 if (getenv ("KMK_GREP_CONSOLE_DEBUG")) 537 fprintf (stderr, "kmk_grep: hStdOut=%p %sconsole codepage=%u ansi=%u\n", 538 s_hStdOut, g_fStdOutIsConsole ? "" : "!", 539 get_crt_codepage (), get_ansi_codepage ()); 539 540 } 540 541 if (g_fStdOutIsConsole == TRUE && size && nmemb) … … 560 561 if (pawcBuf) 561 562 { 562 int cwcToWrite = MultiByteToWideChar( ___lc_codepage_func(),563 int cwcToWrite = MultiByteToWideChar(get_crt_codepage(), 563 564 0 /*dwFlags*/, 564 565 ptr, (int)cbToWrite,
Note:
See TracChangeset
for help on using the changeset viewer.