X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.1 required=5.0 tests=BAYES_00,MIME_CHARSET_FARAWAY X-Spam-Check-By: sourceware.org Message-ID: <4B8D5C9D.9040906@gmail.com> Date: Tue, 02 Mar 2010 18:44:45 +0000 From: Dave User-Agent: Thunderbird 2.0.0.23 (X11/20091126) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: cygwin 1.7.1: "bash prompt here" can't be used at directory which's name contains unicode charactor. References: <40399aed1003020442q4f49b811h41bd4064072762a5 AT mail DOT gmail DOT com> In-Reply-To: <40399aed1003020442q4f49b811h41bd4064072762a5@mail.gmail.com> Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 8bit 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 Note-from-DJ: This may be spam wu andy wrote: > In cygwin 1.7.1, when I use "bash promt here" at a directory which's > name contains unicode charactor, there's wrong. But it's right under > cygwin 1.5.x. > > Below is my example. > C:\Users\andy>C:\cygwin\bin\bash -c "/bin/xhere /bin/bash.exe 'd:\我的工作'" > cygwin warning: > MS-DOS style path detected: /bin/xhere /bin/bash.exe 'd:\鎴戠殑宸ヤ綔' > Preferred POSIX equivalent is: /bin/xhere /bin/bash.exe 'd:/鎴戠殑宸ヤ綔' > CYGWIN environment variable option "nodosfilewarning" turns off this warning. > Consult the user's guide for more details about POSIX paths: > http://cygwin.com/cygwin-ug-net/using.html#using-pathnames > /usr/bin/bash: /bin/xhere /bin/bash.exe 'd:\我的工作': No such file or directory This message is odd. It looks like bash is looking for the full string "/bin/xhere /bin/bash.exe 'd:\xxxx'" instead of just "/bin/xhere" That command is only used when the terminal is cmd. Does anyone know whether the presence of unicode change the globbing rules of cmd/cygwin/bash? Also, is the d:\ within quotes later in the command erronously triggering the nodosfile warning? I'm not expecting to see it here. > It's right when I use : > > C:\cygwin\bin\bash -c "/bin/xhere /bin/bash.exe 'd:\home'" > > So, I think it's a problem. But I don't know how to resolve the > problem. I also can't find andy information at the mail list. Does > anyone know? Thanks. Regards, Dave. chere maintainer. -- 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