unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* ISO-8859-1  encoded file names and UTF-8
@ 2003-03-08  6:15 Karl Eichwalder
  2003-03-08  9:16 ` Eli Zaretskii
  2003-03-19 13:33 ` Kenichi Handa
  0 siblings, 2 replies; 23+ messages in thread
From: Karl Eichwalder @ 2003-03-08  6:15 UTC (permalink / raw)


UTF-8 Emacs sometimes fails to manage ISO-8859-1 file names.  I do not
know how you can rename or convert these file name from ISO-8859-1 to
UTF-8 encoded names using Emacs.

I created some ISO-8859-1 encoded file names (on top of the ext2 file
system).  Start a UTF-8 Emacs:

    LANG=de_DE.UTF-8 emacs

Call dired on the directory containing these files; you will see
something like (attention, Emacs/Gnus will normalize the names when I
send the mail!):

  /home/ke/Texte/wikipedia:
  insgesamt 100
  -rw-r--r--    1 ke       users        1291 2003-03-06 08:35 Brücke (Bauwerk)
  drwxr-xr-x    2 ke       users        4096 2003-03-07 22:29 CVS
  -rw-r--r--    1 ke       users        5836 2003-03-07 07:38 Deutschland
  -rw-r--r--    1 ke       users        1796 2003-03-07 20:44 Fürth (Bayern)
  -rw-r--r--    1 ke       users         450 2003-03-07 22:28 Ludwigs-Kanal
  -rw-r--r--    1 ke       users         259 2003-03-07 05:41 Malaiische Sprache
  -rw-r--r--    1 ke       users        1584 2003-03-07 22:33 Malaysia
  -rw-r--r--    1 ke       users        1266 2003-03-06 08:47 Malta
  -rw-r--r--    1 ke       users         865 2003-03-06 21:24 Maltesische Sprache
  -rw-r--r--    1 ke       users         520 2003-03-05 23:22 Nördliches Sotho
  -rw-r--r--    1 ke       users        1269 2003-03-07 20:04 Pegnitz (Fluss)
  -rw-r--r--    1 ke       users         682 2003-03-07 20:58 Regnitz
  -rw-r--r--    1 ke       users         668 2003-03-07 07:19 Rosmarin
  -rw-r--r--    1 ke       users         593 2003-03-05 23:23 Sesotho

Note, the buffer is marked "-u" in the modeline.

Now go to a file name with umlauts and press 'f' to visit the file:

Debugger entered--Lisp error: (error "File no longer exists; type `g' to update Dired buffer")
  signal(error ("File no longer exists; type `g' to update Dired buffer"))
  error("File no longer exists; type `g' to update Dired buffer")
  dired-get-file-for-visit()
  dired-find-file()
  call-interactively(dired-find-file)

If you will need more info, please ask.  I can also send a tar archive
containing those stupid file names.

-- 
ke@suse.de (work) / keichwa@gmx.net (home):              |
http://www.gnu.franken.de/ke/                            |      ,__o
Free Translation Project:                                |    _-\_<,
http://www.iro.umontreal.ca/contrib/po/HTML/             |   (*)/'(*)

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2003-04-02 19:26 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-08  6:15 ISO-8859-1 encoded file names and UTF-8 Karl Eichwalder
2003-03-08  9:16 ` Eli Zaretskii
2003-03-08 10:05   ` Karl Eichwalder
2003-03-08 17:06     ` Eli Zaretskii
2003-03-08 18:25       ` Karl Eichwalder
2003-03-08 22:35         ` Eli Zaretskii
2003-03-09  4:38           ` Karl Eichwalder
2003-03-19 13:33 ` Kenichi Handa
2003-03-19 16:15   ` Karl Eichwalder
2003-03-19 23:52     ` Kenichi Handa
2003-03-20 17:32       ` Karl Eichwalder
2003-03-21  6:01         ` Kenichi Handa
2003-03-21 19:53           ` Karl Eichwalder
2003-03-21 19:06       ` Richard Stallman
2003-03-20  8:46   ` Richard Stallman
2003-03-20  9:11     ` Kenichi Handa
2003-03-23  2:52       ` Richard Stallman
2003-03-24  0:28         ` Kenichi Handa
2003-03-24 19:27           ` Richard Stallman
2003-03-26  4:47             ` Kenichi Handa
2003-04-01 21:17   ` etags and UTF-8 encoded file names (Re: ISO-8859-1 encoded file names and UTF-8) Karl Eichwalder
2003-04-02  1:34     ` Kenichi Handa
2003-04-02 19:26       ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).