X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-4.5 required=5.0	tests=AWL,BAYES_00,KHOP_SPAMHAUS_DROP,KHOP_THREADED,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
X-CornellRouted: This message has been Routed already.
Message-ID: <51351188.9010208@cornell.edu>
Date: Mon, 04 Mar 2013 16:26:32 -0500
From: Ken Brown <kbrown@cornell.edu>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2
MIME-Version: 1.0
To: cygwin@cygwin.com
CC: Daniel Colascione <dancol@dancol.org>
Subject: Re: Drag a file into emacs-w32 frame
References: <5134CACE.9060900@gmail.com>
In-Reply-To: <5134CACE.9060900@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 3/4/2013 11:24 AM, Arthur Tu wrote:
> Today when i tried to drag a file whose name containing chinese
> characters into emacs, it failed to open.
>
> Here is the brief review:
>
> 1. a file with a pure english file name to emacs-32 frame:
>
>      open successfully.
>
>
> 2. a file with chinese characters in its name to emacs-32 frame:
>
>       error message: "dnd-open-local-file: Can not read
> file:/cygdrive/c/Users/Arthur/Desktop/%20%20%20%20.txt".
>      in fact, i tried several times with different name. the name was
> always decoded as a punch of "20%", even though different chinese
> characters were there.
>
>
> 3. the same file with chinese characters in its name to a emacs-nox
> frame(mintty):
>
>      the file name was pasted into the buffer correctly. chinese
> characters were shown correctly. the file wasn't open. (This is what's
> expected to happen in terminal session.)
>
>
> So my question was around the situation 2.
> How did the emacs-w32 handle the dragged file?

The code for handling the file name appears to be in src/w32fns.c.  I 
don't know what the issues are in trying to make it work when the name 
contains Chinese characters.  Daniel?

Ken

--
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

