From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23329 invoked by alias); 18 Sep 2016 09:04:08 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 23298 invoked by uid 89); 18 Sep 2016 09:04:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_50,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=HImportance:normal, programme, cygdrive, system32 X-HELO: mout.gmx.net Received: from mout.gmx.net (HELO mout.gmx.net) (212.227.17.20) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 18 Sep 2016 09:04:05 +0000 Received: from [85.181.11.74] by 3capp-gmx-bs24.server.lan (via HTTP); Sun, 18 Sep 2016 11:04:02 +0200 MIME-Version: 1.0 Message-ID: From: "Bernhard Fischer" To: cygwin@cygwin.com Subject: Context menu entry "Bash Prompt Here" doesn't change to directory if name contains non ASCII characters Content-Type: text/plain; charset=UTF-8 Date: Sun, 18 Sep 2016 16:42:00 -0000 Sensitivity: Normal References: Content-Transfer-Encoding: quoted-printable X-UI-Message-Type: mail X-UI-Out-Filterresults: notjunk:1;V01:K0:QORm+EVfJkw=:CzYSsCljzZSqc8TK39llkL oS+cSAN01rIUksNMK+yQCdcQVhB3cXHwEeE31Nv7Y+oA+qMk7fAqWwbnlL8wfCjWWN74/Zi3C Do3YbLGv/1AkNFPk6bkJqbZk4+TppI7rMBjSNdAMUw5BgIeyMeIBE45WQhu8RBsYR9y23hLb8 2iVigTRHzptSWpS7Yx9VKTQouBkDCUVXtXdU5TJiEg6E2pEhTqi3S79+Hbaju7xk9/d7gY2ZA 0nBPRSIq1vEjkOkq7oPVJyp6K4VlA8vMX1Gwh/k4eKaCknEQOxYpsNTpkZ+x2xeeIFTneULdq lcJSexDLHHzuzV3dQ8liRsul2VMCs8iFhCScRM9PkXPI3wypH3kUv/cSPViudSlzHHnciSxua pUzOiuYGEDsyWvb1VLajImx+3ckSZk7DNY09jkhj6V3QFlUxZlOJ1t8dKLKBM5LyBeyG0cDqm DcwPKk1wTQ== X-IsSubscribed: yes X-SW-Source: 2016-09/txt/msg00240.txt.bz2 I recently moved from Windows XP x86 to Windows 10 x64 and observed that th= e context menu entry "Bash Prompt Here" doesn't change to the desired direc= tory if the directory name contains non ASCII characters. =C2=A0 Example: Create a directory named "D:\K=C3=A4se" (German "K=C3=A4se" is Eng= lish "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 selecte= d from the (right) list view, the current directory is "/cygdrive/d". Expec= ted is the current directory "/cygdrive/d/K=C3=A4se" in both cases. =C2=A0 The registry entry is as follows: D:\Programme\CygWin\bin\mintty.exe -e /bin/xhere /bin/bash.exe "%V" =C2=A0 The context menu works correct with the following patch applied to "/bin/xh= ere": 52c52,57 <=C2=A0 CHERE_DIR=3D`$CYGPATH "$2"` --- >=C2=A0 WIN_PATH=3D"$2" >=C2=A0 # Strip away surrounding double quotes if present >=C2=A0 if [ ${WIN_PATH:0:1} =3D=3D "\"" -a ${WIN_PATH:(-1):1} =3D=3D "\"" = ]; then >=C2=A0=C2=A0 WIN_PATH=3D"${WIN_PATH:1:${#WIN_PATH}-2}" >=C2=A0 fi >=C2=A0 CHERE_DIR=3D`$CYGPATH "$WIN_PATH"` =C2=A0 Bernhard -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple