-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Japanese text displayed incorrectly when running git diff
in version 2.11.0
#981
Comments
I see the same behavior for german umlauts like |
The same problem with Russian symbols when upgraded from 2.10 to 2.11.0.windows.1 |
I encountered the same problem for Chinese characters after upgrading from 2.10.2 to 2.11.0. |
@nyoro712 to ensure the BOM settings and encodings are correct, are you able to publish this repository somewhere so we're able to test the same bytes? @Egor-Skriptunoff @Suchiman same thing, are you able to provide sample repositories - and repro steps for the commands you are running - to ensure we're testing the right encodings? |
Published https://github.com/nyoro712/git-for-windows-issue-981
-日本語のテキスト
-Write in Japanese
+英語のテキスト
+Write in English
.gitconfig and diff-highlight are not included in the repository. |
Similar problem with letter Õ in git log. |
Could you create echo Charset=UTF-8 >>~/.minttyrc then restart Git Bash and try again? |
The recent git-wrapper change to set LC_ALL=C unless set (required by TortoiseGit to be able to pass non-ASCII command-lines to git.exe) unfortunately broke the encoding in Git Bash. Let's reinstate it. This fixes git-for-windows/git#981 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
I tried |
@nyoro712 I settled on another solution. If you want to work around it in the meantime, right-click on the windows icon in the top left of Git Bash's window, select Options, and make sure that the Text tab lists "UTF-8" as encoding. |
@dscho It still display incorrectly. |
The result of
In version 2.11.0
So I unset
The result of
Then
The result of
Everything works fine. (However, restarting Git Bash, it goes back) |
The fix that closed this ticket is not yet in any published version. Hold on, though, I am still busy preparing a prerelease for you to test. |
Bummer, I thought this ticket would be auto-tagged... https://github.com/git-for-windows/git/releases/tag/prerelease-v2.11.0.windows.1.1 Could you test that, please? |
@dscho I tried prerelease-v2.11.0.windows.1.1. |
Bummer, I thought this ticket would be auto-tagged... https://github.com/git-for-windows/git/releases/tag/prerelease-v2.11.0.windows.1.1
Could you test that, please?
Aside: I mistakenly thought there was a numbering err on the release page, as I'd expected an increment to the 2.11.0 part (i.e. just before the .rc0). In fact the increment is after the .windows. part of the version < feels like a fool >.
I have downloaded and installed the release.
Install title bar 'Git 2.11.0.0.2 Setup'.
On the finish screen selected 'start the Bash', and deselected the show release notes
$ git version
git version 2.10.2.windows.1.895.g8126884
> Should this be the version displayed??
I tested it against Robert's remote.origin.url=https://github.com/rcdailey/test977 and out of the box it displayed the 'special' (above asci) UTF-8 chars just fine.
Philip
--
(pasted text has some line wrap..)
Philip@House-PC MINGW64 ~
$ git version
git version 2.10.2.windows.1.895.g8126884
Philip@House-PC MINGW64 ~
$ cd C:/Users/Philip/test977
Philip@House-PC MINGW64 ~/test977 (master)
$ git log --abbrev-commit --decorate --date=relative --format=format:'\
%C(bold blue)%h%C(reset) | %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset ) %C(dim white)%an%C(reset) - %C(white)%s%C(reset)' --graph
* \
| ce873bd | (4 days ago) (HEAD -> master, origin/master, origin/HEAD) Jesus Mont
año - asdf
* \
| 9c6f104 | (4 days ago) Jesus Montaño - More stuff
* \
8c6b326 | (4 days ago) Jesus Montaño - test test test test test test test test
test test test test test test test test test test test test test test test test
test test test
Philip@House-PC MINGW64 ~/test977 (master)
$
|
Non-ASCII characters are [now shown properly again](git-for-windows/git#981) in Git Bash. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@PhilipOakley it is I who feels like a fool. I assumed that I worked a bit on streamlining the prerelease engineering (basically, I want to start one command in the VM dedicated to build releases and forget about it, it should do everything from coming up with a good tag, to building, to uploading the prerelease and publishing it). The way this script works right now, it will take the base version ( The prerelease which is building right now, as I write this, is labeled Thanks for helping this project! |
Setup
I'm using a portable release: PortableGit-2.11.0-64-bit.7z.exe
Windows 7 Professional, Service Pack 1, 64-bit
defaults?
I have no install-options.txt file.
to the issue you're seeing?
I'm using diff-highlight.
I downloaded diff-highlight file from https://github.com/git/git/tree/master/contrib/diff-highlight and put it in %PathToPortableGit%\usr\bin\ directory.
.gitconfig
Details
Bash
Minimal, Complete, and Verifiable example
this will help us understand the issue.
git diff
Additional Notes
The text was updated successfully, but these errors were encountered: