X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:message-id:from:to:subject :content-type:date:references:content-transfer-encoding; q=dns; s=default; b=qcMlfKqa/R0NTYC4ebqhKNSnpkfaIZ4sZExfce4NCbVG0DCigv C2vt3sOxHEBvR4PBotAVntC45W3zy65oAtYGGra3AH0z5bfDzmd77iTH7BzlN96U drdpLCvVCb5GcRUrzhgK2cPIDWRCSu9SeHe98jjPCZdqC7WJuoDnbJTQM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:message-id:from:to:subject :content-type:date:references:content-transfer-encoding; s= default; bh=Q4KgdbrGCm47wYOr1RqEEDHKIuo=; b=vN/6X0KmFw+Ulyeet+Jd pzs5jLp3km0KUXxfSz/93Tvm1cm0ThW6mV5LHMAPkNO6wXz3I3I9GqgjoAzkBMZl GcGGx9TR8cPK2XtD0lzh9PEZEG4jGiLBhob9VFjEK51+i5u0FF8YUjrnwgBuqXmG WcRqBy57u3VeJFNNw6CJ0yc= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 MIME-Version: 1.0 Message-ID: From: "Bernhard Fischer" To: cygwin AT cygwin DOT 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 11:04:02 +0200 Sensitivity: Normal References: 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 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u8I94Ikw001559 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": 52c52,57 <  CHERE_DIR=`$CYGPATH "$2"` --- >  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 >  CHERE_DIR=`$CYGPATH "$WIN_PATH"`   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