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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#15236: closed (24.3.50; Save file with Unicode chars in name
 on MS Windows replaces chars by SPCs)
Date: Thu, 12 Dec 2013 18:27:07 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 12 Dec 2013 20:25:55 +0200
with message-id <834n6e6i4s.fsf <at> gnu.org>
and subject line Re: bug#7100: 24.0.50; Emacs for MS Windows cannot handle Unicode file name
has caused the debbugs.gnu.org bug report #7100,
regarding 24.3.50; Save file with Unicode chars in name on MS Windows replaces chars by SPCs
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
7100: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7100
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Drew Adams <drew.adams <at> oracle.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; Save file with Unicode chars in name on MS Windows replaces
 chars by SPCs
Date: Sun, 1 Sep 2013 10:11:38 -0700 (PDT)
This might be a duplicate of #7100 and #12807 - I cannot tell.  In any
case, the recipe here is different.

Whether the same bug or not, it seems like this kind of bug should be a
priority in 2013, not relegated to the wishlist since 2010.  Is it
possible that Emacs on MS Windows still cannot save files with Unicode
chars in the name?  Am I missing something?  Is this a Windows
limitation in general, perhaps?

emacs -Q

Create a new file buffer with a Unicode character, such as GREEK SMALL
LETTER LAMBDA, in the file name.  Note that the mode line of the buffer
shows the file name (buffer name) correctly, i.e., with the lambda chars.

Enter some text in the file buffer, including, for example, such a char.
Set the encoding to utf-8, to be sure.  Save the file.  The mode line
still shows the file name correctly.  All seems OK.  No error from Emacs.

But the name of the file actually created has a SPC char in place of
each GREEK SMALL LETTER LAMBDA char that should be there.  You can see
this in Dired, and if you open the file from there you can see it in the
mode line or via M-: (buffer-file-name).

Can this be fixed?  If not, how about letting the user know when s?he
saves the file that Emacs (or Windows?) has in fact changed the name?

In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
 of 2013-08-23 on ODIEONE
Bzr revision: 113986 rgm <at> gnu.org-20130823185841-zoy6h1qk433ibrlf
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/c/Devel/emacs/binary --enable-checking=yes,glyphs
 'CFLAGS=-O0 -g3' LDFLAGS=-Lc:/Devel/emacs/lib
 CPPFLAGS=-Ic:/Devel/emacs/include'


[Message part 3 (message/rfc822, inline)]
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.


This bug report was last modified 11 years and 164 days ago.

Previous Next


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