Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions compat/win32/git-wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,6 @@ int main(void)
WCHAR exepath[MAX_PATH], exe[MAX_PATH];
LPWSTR cmd = NULL, exep = exe, prefix_args = NULL, basename;
LPWSTR working_directory = NULL;
UINT codepage = 0;

/* Determine MSys2-based Git path. */
swprintf(msystem_bin, sizeof(msystem_bin),
Expand Down Expand Up @@ -437,10 +436,6 @@ int main(void)
}
}

/* set the console to ANSI/GUI codepage */
codepage = GetConsoleCP();
SetConsoleCP(GetACP());

{
STARTUPINFO si;
PROCESS_INFORMATION pi;
Expand Down Expand Up @@ -499,7 +494,5 @@ int main(void)

free(cmd);

/* reset the console codepage */
SetConsoleCP(codepage);
ExitProcess(r);
}