GNU bug report logs - #7100
24.0.50; Emacs for MS Windows cannot handle Unicode file name

Previous Next

Packages: w32, emacs;

Reported by: =5ddd=5e61 =592a=4e00 <kawabata.taichi <at> gmail.com>( Taichi KAWABATA )

Date: Sat, 25 Sep 2010 12:22:01 UTC

Severity: wishlist

Merged with 12807, 15236

Found in versions 24.0.50, 24.2, 24.3.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7100 in the body.
You can then email your comments to 7100 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7100; Package emacs. (Sat, 25 Sep 2010 12:22:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to =5ddd=5e61 =592a=4e00 <kawabata.taichi <at> gmail.com>( Taichi KAWABATA ):
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 25 Sep 2010 12:22:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: =5ddd=5e61 =592a=4e00 <kawabata.taichi <at> gmail.com>( Taichi KAWABATA )
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.50; Emacs for MS Windows cannot handle Unicode file name
Date: Sat, 25 Sep 2010 16:25:07 +0900
----

In MS Windows, ANSI file names are handled with fopen(), readdir(),
etc., while Unicode file names are handled with _wfopen(), _wreaddir(),
etc.

As MS Windows Emacs only uses fopen(), readdir(), etc., for handling
file names, Emacs can not handle Unicode file names.  If Windows uses
CP1252, only file names with CP1252 characters can be properly displayed
with Emacs.  (In dired, Unicode file names will be displayed as
undecipherable file name that contains tilde characters.)

On the other hand, for example, Cygwin (as of v1.7) now supports Unicode
file names, by means of UTF-8 format, thus it can handle any Windows
file names with Unix tools, such as rsync, etc.

This also implies that, the file-name output of `ls', `find' or `grep'
or other Unix tools of Cygwin can not be understood by Emacs (even if
cygwin-mount.el) is installed.

Regardless of Cygwin, I wish that if this problem would be recognized as
a bug and to be fixed in any future times.

Regards,

-- 
---------------------------------------------------------------------
  KAWABATA, Taichi  (kawabata.taichi <at> gmail.com)




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7100; Package emacs. (Sat, 25 Sep 2010 13:23:02 GMT) Full text and rfc822 format available.

Message #8 received at 7100 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: =5ddd=5e61 =592a=4e00 <kawabata.taichi <at> gmail.com> ( Taichi KAWABATA	)
Cc: 7100 <at> debbugs.gnu.org
Subject: Re: bug#7100: 24.0.50;
	Emacs for MS Windows cannot handle Unicode file name
Date: Sat, 25 Sep 2010 15:25:07 +0200
> From: =5ddd=5e61 =592a=4e00 <kawabata.taichi <at> gmail.com>( Taichi KAWABATA )
> Date: Sat, 25 Sep 2010 16:25:07 +0900
> Cc: 
> 
> As MS Windows Emacs only uses fopen(), readdir(), etc., for handling
> file names, Emacs can not handle Unicode file names.  If Windows uses
> CP1252, only file names with CP1252 characters can be properly displayed
> with Emacs.  (In dired, Unicode file names will be displayed as
> undecipherable file name that contains tilde characters.)

This is currently a missing feature in the Windows build of Emacs.
Patches are most welcome.




Merged 7100 12807. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 05 Nov 2012 22:23:02 GMT) Full text and rfc822 format available.

Merged 7100 12807 15236. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 01 Sep 2013 19:17:02 GMT) Full text and rfc822 format available.

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Thu, 12 Dec 2013 18:27:03 GMT) Full text and rfc822 format available.

Notification sent to =5ddd=5e61 =592a=4e00 <kawabata.taichi <at> gmail.com>( Taichi KAWABATA ):
bug acknowledged by developer. (Thu, 12 Dec 2013 18:27:05 GMT) Full text and rfc822 format available.

Message #17 received at 7100-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: kawabata.taichi <at> gmail.com
Cc: 7100-done <at> debbugs.gnu.org
Subject: Re: bug#7100: 24.0.50;
 Emacs for MS Windows cannot handle Unicode file name
Date: Thu, 12 Dec 2013 20:25:55 +0200
> Date: Sat, 25 Sep 2010 15:25:07 +0200
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 7100 <at> debbugs.gnu.org
> 
> > From: =5ddd=5e61 =592a=4e00 <kawabata.taichi <at> gmail.com>( Taichi KAWABATA )
> > Date: Sat, 25 Sep 2010 16:25:07 +0900
> > Cc: 
> > 
> > As MS Windows Emacs only uses fopen(), readdir(), etc., for handling
> > file names, Emacs can not handle Unicode file names.  If Windows uses
> > CP1252, only file names with CP1252 characters can be properly displayed
> > with Emacs.  (In dired, Unicode file names will be displayed as
> > undecipherable file name that contains tilde characters.)
> 
> This is currently a missing feature in the Windows build of Emacs.
> Patches are most welcome.

Since no one stepped forward with the patches, I did it myself.

Starting with trunk revision 115490, Emacs on Windows can access file
names whose names include characters outside of the current ANSI
codepage.




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Thu, 12 Dec 2013 18:27:05 GMT) Full text and rfc822 format available.

Notification sent to Nils Gösche <cartan <at> cartan.de>:
bug acknowledged by developer. (Thu, 12 Dec 2013 18:27:06 GMT) Full text and rfc822 format available.

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Thu, 12 Dec 2013 18:27:07 GMT) Full text and rfc822 format available.

Notification sent to Drew Adams <drew.adams <at> oracle.com>:
bug acknowledged by developer. (Thu, 12 Dec 2013 18:27:07 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 10 Jan 2014 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 121 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.