Skip to content

Instantly share code, notes, and snippets.

@long-nguyenxuan
Last active January 4, 2023 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save long-nguyenxuan/18c2e85bf29f1fb91cef0250bd5082ec to your computer and use it in GitHub Desktop.
Save long-nguyenxuan/18c2e85bf29f1fb91cef0250bd5082ec to your computer and use it in GitHub Desktop.

I've change my core.quotepath to off.

My locale is UTF-8

I use Git Bash on Windows 10, Git Bash's text font set to be Consolas.

But my 初めに.txt file showed up as σê¥πéüπü½.txt

Font error, 初めに.txt got changed to σê¥πéüπü½.txt

Text Font has been set to Consolas

longnx@DESKTOP-D46DU6R MINGW64 /d/tmp/demo-utf8 (master)
$ git config -l
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
http.sslbackend=openssl
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
core.autocrlf=false
core.fscache=true
core.symlinks=true
credential.helper=manager
pull.rebase=false
merge.tool=kdiff3
mergetool.kdiff3.path=C:/Program Files/KDiff3/kdiff3.exe
diff.guitool=kdiff3
difftool.kdiff3.path=C:/Program Files/KDiff3/kdiff3.exe
core.editor='d:/apps/npp/notepad++.exe' -multiInst -notabbar -nosession -noPlugin
core.quotepath=off
pull.rebase=false
fetch.prune=false
rebase.autostash=false
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
(END)

here is my locale, all UTF-8

longnx@DESKTOP-D46DU6R MINGW64 /d/tmp/demo-utf8 (master)
$ locale
LANG=C.UTF-8
LC_CTYPE="C.UTF-8"
LC_NUMERIC="C.UTF-8"
LC_TIME="C.UTF-8"
LC_COLLATE="C.UTF-8"
LC_MONETARY="C.UTF-8"
LC_MESSAGES="C.UTF-8"
LC_ALL=

here is git status return

longnx@DESKTOP-D46DU6R MINGW64 /d/tmp/demo-utf8 (master)
$ git status
On branch master

No commits yet

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        初めに.txt

nothing added to commit but untracked files present (use "git add" to track)

although ls show it correctly

longnx@DESKTOP-D46DU6R MINGW64 /d/tmp/demo-utf8 (master)
$ ls
初めに.txt
@kle97
Copy link

kle97 commented Jan 4, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment