Changeset 3548 in kBuild
- Timestamp:
- Jan 29, 2022 2:41:10 AM (3 years ago)
- Location:
- trunk/src/grep
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/grep/Makefile.kmk
r3537 r3548 134 134 lib/strerror.c \ 135 135 \ 136 ../lib/maybe_con_fwrite.c \ 137 ../lib/is_console.c \ 136 ../lib/get_codepage.c \ 138 137 ../lib/nt/ntstat.c \ 139 138 ../lib/nt/ntdir.c \ … … 240 239 $(CP) -f -- "$^" "$@" 241 240 242 if 1# Add a manifest making UTF-8 as the active code page.241 ifndef KBUILD_NEW_VCC # Add a manifest making UTF-8 as the active code page. 243 242 kmk_grep_LNK_DEPS.win = \ 244 243 $(kmk_grep_0_OUTDIR)/kmk_grep.manifest -
trunk/src/grep/config.win.h
r3536 r3548 2589 2589 void w32_initialize_main(int *pcArgs, char ***ppapszArgs); 2590 2590 2591 #include "get_codepage.h" 2592 2591 2593 #endif /* !INCLUDED_CONFIG_WIN_H */ 2592 2594 -
trunk/src/grep/lib/regcomp.c
r3532 r3548 882 882 # ifdef _MSC_VER 883 883 (void)codeset_name; 884 if ( GetACP() == 65001 /*utf-8*/)884 if (get_crt_codepage() == CP_UTF8) 885 885 # else 886 886 codeset_name = nl_langinfo (CODESET); -
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.