mirror of
https://github.com/git/git.git
synced 2026-02-10 09:48:09 +00:00
Merge pull request #142 from kblees/kb/remove-chcp
git-wrapper: don't set the console input code page
This commit is contained in:
@@ -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),
|
||||
@@ -437,10 +436,6 @@ int main(void)
|
||||
}
|
||||
}
|
||||
|
||||
/* set the console to ANSI/GUI codepage */
|
||||
codepage = GetConsoleCP();
|
||||
SetConsoleCP(GetACP());
|
||||
|
||||
{
|
||||
STARTUPINFO si;
|
||||
PROCESS_INFORMATION pi;
|
||||
@@ -499,7 +494,5 @@ int main(void)
|
||||
|
||||
free(cmd);
|
||||
|
||||
/* reset the console codepage */
|
||||
SetConsoleCP(codepage);
|
||||
ExitProcess(r);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user