This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Context menu entry "Bash Prompt Here" doesn't change to directory if name contains non ASCII characters

I recently moved from Windows XP x86 to Windows 10 x64 and observed that the context menu entry "Bash Prompt Here" doesn't change to the desired directory if the directory name contains non ASCII characters.
Example: Create a directory named "D:\Käse" (German "Käse" is English "cheese") and select the context menu entry "Bash Prompt Here". If the menu entry is selected from the (left) tree view of Windows Explorer, the current directory of the bash is "/cygdrive/c/WINDOWS/system32", if selected from the (right) list view, the current directory is "/cygdrive/d". Expected is the current directory "/cygdrive/d/Käse" in both cases.
The registry entry is as follows:
D:\Programme\CygWin\bin\mintty.exe -e /bin/xhere /bin/bash.exe "%V"
The context menu works correct with the following patch applied to "/bin/xhere":
>  WIN_PATH="$2"
>  # Strip away surrounding double quotes if present
>  if [ ${WIN_PATH:0:1} == "\"" -a ${WIN_PATH:(-1):1} == "\"" ]; then
>   WIN_PATH="${WIN_PATH:1:${#WIN_PATH}-2}"
>  fi

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]