We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 438f3e7 + 9ed3894 commit 975e780Copy full SHA for 975e780
compat/win32/git-wrapper.c
@@ -321,7 +321,6 @@ int main(void)
321
WCHAR exepath[MAX_PATH], exe[MAX_PATH];
322
LPWSTR cmd = NULL, exep = exe, prefix_args = NULL, basename;
323
LPWSTR working_directory = NULL;
324
- UINT codepage = 0;
325
326
/* Determine MSys2-based Git path. */
327
swprintf(msystem_bin, sizeof(msystem_bin),
@@ -437,10 +436,6 @@ int main(void)
437
436
}
438
439
440
- /* set the console to ANSI/GUI codepage */
441
- codepage = GetConsoleCP();
442
- SetConsoleCP(GetACP());
443
-
444
{
445
STARTUPINFO si;
446
PROCESS_INFORMATION pi;
@@ -499,7 +494,5 @@ int main(void)
499
494
500
495
free(cmd);
501
496
502
- /* reset the console codepage */
503
- SetConsoleCP(codepage);
504
497
ExitProcess(r);
505
498
0 commit comments