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

could not find /tmp when my TEMP directory contains chinese characters #331

Closed
techstay opened this issue Aug 29, 2015 · 9 comments
Closed

Comments

@techstay
Copy link

Here is the mount mapping :

D:/Program Files/Git on / type ntfs (binary,noacl,auto)
D:/Program Files/Git/usr/bin on /bin type ntfs (binary,noacl,auto)
C:/Users/▒ٴ▒/AppData/Local/Temp on /tmp type ntfs (binary,noacl,posix=0)
C: on /c type ntfs (binary,noacl,posix=0,user,noumount,auto)
D: on /d type ntfs (binary,noacl,posix=0,user,noumount,auto)
Z: on /z type ntfs (binary,noacl,posix=0,user,noumount,auto)

Here is my windows temp directories

C:\Users\百川>echo %TEMP%
C:\Users\百川\AppData\Local\Temp

C:\Users\百川>echo %tmp%
C:\Users\百川\AppData\Local\Temp

I tried to change charset to gbk in mintty,but is still didn't work and met new errors when I tried to pull from remote repository

Could not create directory '/c/Users/\351\226\273\321\204\345\204\263\347\273\220\302\233/.ssh'.

@techstay
Copy link
Author

OK,I find a way that would not be the best solutions:

change my user path TEMP and TMP to a new directory instead of the default path containing chinese characters. And it works

@linquize
Copy link

Is it related to #336?

@lychichem
Copy link

Seems so, and I think the reporter must using Windows 8+ and sign in with Microsoft Account. The default setting used user's name on Microsoft which contains Chinese characters, and as I am a user upgraded from Win7 to Win10 I don't have the user profile problem.

@techstay
Copy link
Author

Yes,so I have to change my environment path to avoid it.When can the bug be fixed?

@lychichem
Copy link

As I'm not the developer of git, I don't know. Maybe you should ask @dscho .

@dscho
Copy link
Member

dscho commented Sep 15, 2015

When can the bug be fixed?

It might not have been your intention, but the impression you left was that you expect others to fix your problem. This is not the impression you want to leave in any Open Source project.

Assuming that you actually meant to participate actively, as you should, I uploaded an msys-2.0.dll (64-bit) here that you can download and test by replacing the C:\Program Files\Git\usr\bin\msys-2.0.dll file with the temporary version.

Please note that it will accelerate the fix if you test, and it will delay the fix if you don't.

@techstay
Copy link
Author

I replaced it and it seemed to work.Thank you !

dscho added a commit to git-for-windows/msys2-runtime that referenced this issue Sep 16, 2015
This fixes git-for-windows/git#331

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@lychichem
Copy link

Replaced the dll file. But it only works for user profile, if I manually set a repository path to somewhere which has none ASCII characters (here I use "D:\Downloads\测试\localized-addons"), the git GUI will show "couldn't change work directory" while pulling and will also get error while pushing, so the issue is not fully fixed.

@dscho
Copy link
Member

dscho commented Sep 16, 2015

@lychichem first of all: you are welcome that I work to fix your problems. It is nice that you appreciate that so much.

Second, the Git GUI bug is different from this bug. This bug is about /tmp/. And this bug has been fixed.

Third, I warmly invite you to work on your problem. git gui is a Tcl/Tk script, so you can just edit the file (if you unpack a portable Git, there will not be permission problems).

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

No branches or pull requests

4 participants