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:06:09 +0200 Message-ID: <83wqthy7v2.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 1362774782 13400 80.91.229.3 (8 Mar 2013 20:33:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Mar 2013 20:33:02 +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:33:26 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 1UE3yj-0006nJ-0k for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Mar 2013 21:33:21 +0100 Original-Received: from localhost ([::1]:60163 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UE3yM-0005NP-Fk for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Mar 2013 15:32:58 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UE3b1-0000yh-Iq for bug-gnu-emacs@gnu.org; Fri, 08 Mar 2013 15:09:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UE3aZ-0000kz-B8 for bug-gnu-emacs@gnu.org; Fri, 08 Mar 2013 15:08:51 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UE3aZ-0000kl-7f for bug-gnu-emacs@gnu.org; Fri, 08 Mar 2013 15:08:23 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UE3bB-0000nV-JJ for bug-gnu-emacs@gnu.org; Fri, 08 Mar 2013 15:09: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:09: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.13627732963011 (code B ref 13907); Fri, 08 Mar 2013 20:09:01 +0000 Original-Received: (at 13907) by debbugs.gnu.org; 8 Mar 2013 20:08:16 +0000 Original-Received: from localhost ([127.0.0.1]:39982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UE3aS-0000mV-5M for submit@debbugs.gnu.org; Fri, 08 Mar 2013 15:08:16 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:32993) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UE3aP-0000mG-Fy for 13907@debbugs.gnu.org; Fri, 08 Mar 2013 15:08:14 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MJC00G00YDV2J00@a-mtaout22.012.net.il> for 13907@debbugs.gnu.org; Fri, 08 Mar 2013 22:06:13 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MJC00F6LYIDVR80@a-mtaout22.012.net.il>; Fri, 08 Mar 2013 22:06:13 +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:72243 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? In addition, please describe how you created the "/tmp/=DC.txt" file = -- what command did you use?