Using the windows explorer context menu entry "Bash prompt here" that is installed with the cygwin package chere
does not work, when the path contains a German umlaut in any position. E.g.: using it for c:/temp/ö
results in a Bash prompt opened in c:/temp
, while opening a cmd
prompt works also with umlauts in the path.
How do I resolve this issue?
FYI:
- created registry entry is
c:\opt\cygwin\bin\mintty.exe -e /bin/xhere /bin/bash.exe "%L"
(in extended context menu "%L" is replaced by "%V"; but this also does not work) - locale setting in cygwin:
LANG=de_DE.UTF-8
- File system is NTFS. Therefore file names are claimed to be stored in "Unicode", whatever this means in the respective documentation (Windows Dev Center description of encoding for file names)
- Codepage in CMD-window: 850 (according to powershell command
[System.Text.Encoding]::Default
) - Windows codepage: 1252
- All three programs (windows explorer, cmd.exe, bash in mintty) show the umlaut in consistent manner despite different encodings
- Renaming files is not possible as the problem mainly arises on network drives with folders/files that are a) referred to by lots of links (symbolic as well as windows shortcuts) and b) owned/shared by multiple different users