Closed
Description
There's something wrong w.r.t. encoding in Git Bash. Non-ASCII characters (German Umlauts in my case) appear garbled in the terminal output.
Git 2.43.0:
$ git add -p
diff --git a/test.txt b/test.txt
index a3ea8e6..0e54281 100644
--- a/test.txt
+++ b/test.txt
@@ -1 +1,2 @@
äöü
+change
(1/1) Stage this hunk [y,n,q,a,d,e,?]?
Git 2.44.0:
$ git add -p
diff --git a/test.txt b/test.txt
index a3ea8e6..0e54281 100644
--- a/test.txt
+++ b/test.txt
@@ -1 +1,2 @@
├ñ├Â├╝
+change
(1/1) Stage this hunk [y,n,q,a,d,e,?]?
Setup
- Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options
git version 2.44.0.windows.1
cpu: x86_64
built from commit: ad0bbfffa543db6979717be96df630d3e5741331
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon
- Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver
Microsoft Windows [Version 10.0.19045.3930]
- What options did you set as part of the installation? Or did you choose the
defaults?
I installed Git using Scoop, which just extracts PortableGit-2.44.0-64-bit.7z.exe
.
- Any other interesting things about your environment that might be related
to the issue you're seeing?
Nothing I can think of.
Details
- Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other
Bash inside of the Windows Terminal App. But this is also reproducible using CMD, PowerShell and git-bash.exe.
- What commands did you run to trigger this issue? If you can provide a
Minimal, Complete, and Verifiable example
this will help us understand the issue.
git add -p
- What did you expect to occur after running these commands?
Non-ASCII characters should be displayed properly .
- What actually happened instead?
Non-ASCII characters are garbled.
- If the problem was occurring with a specific repository, can you provide the
URL to that repository to help us with testing?
No specific repository, but here's a Gist with the test file.
Metadata
Metadata
Assignees
Labels
No labels