From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#13907: 24.3.50; cygw32 build mishandles drag-n-dropped file with non-ASCII characters in name Date: Fri, 08 Mar 2013 22:33:07 +0200 Message-ID: <83vc91y6m4.fsf@gnu.org> References: <513A1D4D.5060908@cornell.edu> <8338w5zni7.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1362775213 17367 80.91.229.3 (8 Mar 2013 20:40:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Mar 2013 20:40:13 +0000 (UTC) Cc: 13907@debbugs.gnu.org To: kbrown@cornell.edu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 08 21:40:37 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UE45j-0007CO-4R for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Mar 2013 21:40:35 +0100 Original-Received: from localhost ([::1]:49054 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UE45M-0006FQ-Tv for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Mar 2013 15:40:13 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UE3yv-00066B-GR for bug-gnu-emacs@gnu.org; Fri, 08 Mar 2013 15:33:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UE3yl-0000dg-C3 for bug-gnu-emacs@gnu.org; Fri, 08 Mar 2013 15:33:33 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35919) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UE3yl-0000dU-8s for bug-gnu-emacs@gnu.org; Fri, 08 Mar 2013 15:33:23 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UE3zN-0001O8-M0 for bug-gnu-emacs@gnu.org; Fri, 08 Mar 2013 15:34:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Mar 2013 20:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13907 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13907-submit@debbugs.gnu.org id=B13907.13627748405329 (code B ref 13907); Fri, 08 Mar 2013 20:34:01 +0000 Original-Received: (at 13907) by debbugs.gnu.org; 8 Mar 2013 20:34:00 +0000 Original-Received: from localhost ([127.0.0.1]:40028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UE3zL-0001Nu-PZ for submit@debbugs.gnu.org; Fri, 08 Mar 2013 15:34:00 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:38001) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UE3zJ-0001Nd-SR for 13907@debbugs.gnu.org; Fri, 08 Mar 2013 15:33:59 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MJC00G00ZNMAY00@a-mtaout22.012.net.il> for 13907@debbugs.gnu.org; Fri, 08 Mar 2013 22:33:12 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MJC00GMIZRC9S40@a-mtaout22.012.net.il>; Fri, 08 Mar 2013 22:33:12 +0200 (IST) In-reply-to: <8338w5zni7.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:72244 Archived-At: > Date: Fri, 08 Mar 2013 21:42:56 +0200 > From: Eli Zaretskii > Cc: 13907@debbugs.gnu.org >=20 > > Date: Fri, 08 Mar 2013 12:18:05 -0500 > > From: Ken Brown > >=20 > > Create a file "/tmp/=DC.txt". (In case my mailer mangles this, t= hat's=20 > > .txt.) Now open Windows Explorer and drag this file in= to an=20 > > emacs frame. This results in the error message > >=20 > > dnd-open-local-file: Can not read file:///tmp/%20.txt > >=20 > > I think the problem occurs early in w32-handle-dropped-file (defi= ned in=20 > > lisp/term/w32-win.el). That function starts with > >=20 > > (let ((f (if (eq system-type 'cygwin) > > =09 (cygwin-convert-file-name-from-windows file-name t) > >=20 > > At this point f should have the value "/tmp/=DC.txt". If I conti= nue=20 > > manually carrying out the code in w32-handle-dropped-file as thou= gh f=20 > > had that value, everything is fine, as shown below. So=20 > > cygwin-convert-file-name-from-windows must be doing something wro= ng. >=20 > What do you get from cygwin-convert-file-name-from-windows with thi= s > file name? >=20 > Also, what is the system codepage on this system? And one more question: what is the value of file-name _before_ it is passed to cygwin-convert-file-name-from-windows? Does it perhaps already have the U-umlaut replaced by a blank?