Maximus5 / ConEmu

Customizable Windows terminal with tabs, splits, quake-style, hotkeys and more
https://conemu.github.io/
BSD 3-Clause "New" or "Revised" License
8.6k stars 573 forks source link

Git bash shell fails to open with portable version when portable path has non ASCII charaters #2293

Open hubaishan opened 3 years ago

hubaishan commented 3 years ago

Versions

ConEmu build: 210312 x32/x64 portable OS version: Windows 10 x32/x64 Used shell version (git-bash,): 2.20.3

Problem description

I used portable version in path contains Arabic character (Non ASCII), Git bash failed I got this message:

error launching git: The system cannot find the file specified.

when putting the same Conemu version in ASCII only path, It runs OK.

Maximus5 commented 3 years ago

I need more details. ConEmu is unicode application, so I doubt the problem is in it.

hubaishan commented 3 years ago

I think I catched the bug:

ConEmu Environment variable %ConEmuBaseDirShort% does not give the short path, instead it gives same as %ConEmuBaseDir%

hubaishan commented 3 years ago

I noticed the Windows 10 does not create short names by default in the volume contains the conemu I run this command: fsutil.exe 8dot3name query F:

I got:

The volume state is: 1 (8dot3 name creation is disabled). The registry state is: 2 (Per volume setting - the default).

Maximus5 commented 3 years ago

ConEmu does not care about spaces or non-ASCII characters. ConEmu just runs every application using UNICODE paths.

Please describe what and how do you run your application, if you need further help.

hubaishan commented 3 years ago

I think Git bash could not locate path contains spaces or non-ASCII characters