Issue with tab expansion and non-English file names #64

Open
Haacked opened this Issue Jul 16, 2012 · 4 comments

2 participants

@Haacked

Repro steps:

  1. touch 慣用音.txt
  2. git add {tab}

Expected: it expands the filename.
Actual: it expands to:

git add "\346\205\243\347\224\250\351\237\263.txt"

That wouldn't be a problem except it doesn't work.

  1. git config core.quotepath true
  2. git add {tab}

Result:

@dahlbyk
Owner

The good news is using libgit2sharp fixes this. The bad news is that libgit2sharp integration isn't quite where it needs to be.

I'll see what I can do until then...

@dahlbyk
Owner

It appears to work by adding -c core.quotepath=false to the git status command, but PowerShell is treating the command output differently when assigned to a variable (or piped to anything):

[master +1 ~0 -0 !]> git -c core.quotepath=false status -sb
## master
?? 慣用音.txt
[master +1 ~0 -0 !]> $status = git -c core.quotepath=false status -sb; $status
## master
?? 慣用音.txt

Setting $OutputEncoding to various values has not seemed to help.

@Haacked

Should I close this as "won't fix"?

@dahlbyk
Owner

Or I could mark it up-for-grabs if someone really cares to dive in. Maybe 2014 will be the year that posh-git jumps to libgit2?

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