Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use UTF-8 code page when using native ANSI sequence processing (git-f…
…or-windows#4968) In git-for-windows#4700, I introduced a change in Git for Windows' behavior where it would favor recent Windows 10 versions' native ANSI sequence processing to [Git for Windows' home-grown one](https://github.com/git-for-windows/git/blob/v2.45.1.windows.1/compat/winansi.c#L362-L439). What I missed was that the home-grown processing _also_ ensured that text written to the Win32 Console was carefully converted from UTF-8 to UTF-16 encoding, while the native ANSI sequence processing would respect the currently-set code page. However, Git for Windows does not use the current code page at all, always using UTF-8 encoded text internally. So let's make sure that the code page is `CP_UTF8` when Git for Windows uses the native ANSI sequence processing. This fixes git-for-windows#4851.
- Loading branch information