Skip to content
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

Non-ASCII characters displayed incorrectly in Windows CMD when running 'git log' in version 2.12.1 #1100

Closed
1 task done
sobolevsv opened this issue Mar 22, 2017 · 6 comments

Comments

@sobolevsv
Copy link

sobolevsv commented Mar 22, 2017

  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
    git version 2.12.1.windows.1 64-bit

$ git --version --build-options

git --version --build-options
git version 2.12.1.windows.1
built from commit: 2c6cf4e
sizeof-long: 4
machine: x86_64

  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?

Windows 10 64bit

$ cmd.exe /c ver

Microsoft Windows [Version 10.0.14393]

  • What options did you set as part of the installation? Or did you choose the
    defaults?

default

One of the following:

type "C:\Program Files\Git\etc\install-options.txt"
type "C:\Program Files (x86)\Git\etc\install-options.txt"
type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

type "C:\Program Files\Git\etc\install-options.txt"
Path Option: Cmd
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

CMD and Git Bash

git log

  • What did you expect to occur after running these commands?

comments in russian language

  • What actually happened instead?

in Git Bash comment are shown correctly, but in CMD I see someting like that
<87><8E> <81>

before I upgraded to 2.12 version, russian comments were shown correctly in CMD.

@sobolevsv sobolevsv changed the title Non-ASCII characters are shown not correctly in Windows cmd Non-ASCII characters displayed incorrectly in Windows cmd Mar 22, 2017
@sobolevsv sobolevsv changed the title Non-ASCII characters displayed incorrectly in Windows cmd Non-ASCII characters displayed incorrectly in Windows CMD when running 'git log' in version 2.12.1 Mar 22, 2017
@shiftkey
Copy link

before I upgraded to 2.12 version, russian comments were shown correctly in CMD.

@sobolevsv which version were you previously using?

@sobolevsv
Copy link
Author

Git-2.10.1-64-bit

@fourpastmidnight
Copy link

A very similar issue was reported recently on #1087. I wonder if anything in that issue would be if help? There's also #1053, #1036, and #945. Try #1087 first though, because it looks very similar to what you're experiencing.

@sobolevsv
Copy link
Author

thanks, yep, I have the same problem as on #1087.
"git --no-pager log" outputs correctly, but
"git log" does not

@gwenner
Copy link

gwenner commented Mar 27, 2017

It's the less pager that causes this.

I found a workaround in setting the LESS environment variable to "FrX" (default "FRX" is used otherwise).

@dscho
Copy link
Member

dscho commented Oct 15, 2021

Closing this as stale.

@dscho dscho closed this as completed Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants