all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Reading national characters in filenames on Mac OS X?
@ 2003-04-26  7:18 Jonas Steverud
  2003-04-26 14:29 ` Kai Großjohann
  0 siblings, 1 reply; 19+ messages in thread
From: Jonas Steverud @ 2003-04-26  7:18 UTC (permalink / raw)



Hello.

(In case this should be a faq, please direct me to wherever I can find
the asnwer, I've googled around but whithout success.)

Since I'm swedish speaking I find it quite natural to have 
directory names and filenames in swedish, which means that quite a
few will contain the swedish letters, åäöÅÄÖ.

The problem is that Emacs[1] cannot handle those files since Mac OS X
10.2.5 use UTF-8 (?) for encoding filenames - not in the current set-up
at least. It thinks the multibyte is two characters.

Does anyone know how to make Emacs understand that the names are UTF-8
encoded?

Apple's X11.app ß3
LANG=sv_SE
LC_CTYPE=iso_8859_1

(set-language-environment "Latin-1")

The above probably sets the following:
default-file-name-coding-system's value is iso-latin-1
file-name-coding-system's value is nil

I tried to set file-name-coding-system to 'utf-8 and 'mac-roman and
Emacs stops complaing about the file's name (with iso-latin-1 it can
walk down a directory path with non-A-Z but when I try to select a
file it claims the directory doesn't exist ["run M-x make-directory"])
but I don't see the non-A-Z character but some other two character
representation, i.e. Emacs doesn't decode the multibyte when it is viewed.

What is the recommended set-up if I want to be able to read a Mac
filesystem and edit text in Latin-1 - I have too many files using
Latin-1, esp. Gnus, to change to UTF-8. But UTF-8 for editing is an
option if all my old files won't confuse Emacs, i.e. I don't want to
lose all my mails.

Is there a (set-language-environemnt "utf-8")-equivalent? I couldn't
find anything appropriate. :-(

Any suggestions?

-------
[1]  GNU Emacs 21.2.1 (powerpc-apple-darwin, X toolkit) of 2003-01-02
on Neocortex.local. Downloaded and patched via the Fink project.
-- 
(         http://hem.bredband.net/steverud        !     Wei Wu Wei     )
(        Meaning of U2 Lyrics, Roleplaying        !  To Do Without Do  )

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

end of thread, other threads:[~2003-04-28 20:16 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-26  7:18 Reading national characters in filenames on Mac OS X? Jonas Steverud
2003-04-26 14:29 ` Kai Großjohann
2003-04-27  5:06   ` Karl Eichwalder
2003-04-27  6:48     ` Jonas Steverud
2003-04-27 11:59       ` Kai Großjohann
2003-04-27 19:21         ` Jonas Steverud
2003-04-27 19:35           ` Kai Großjohann
2003-04-27 13:02       ` Karl Eichwalder
2003-04-27 11:58     ` Kai Großjohann
2003-04-27 12:57       ` Karl Eichwalder
2003-04-27 14:04         ` Kai Großjohann
2003-04-27 17:19           ` Karl Eichwalder
2003-04-27 19:24           ` Jonas Steverud
2003-04-27 14:28       ` Piet van Oostrum
2003-04-27 19:09         ` Kai Großjohann
2003-04-27 19:37           ` Jonas Steverud
2003-04-27 19:50             ` Kai Großjohann
2003-04-28 18:42           ` Piet van Oostrum
2003-04-28 20:16             ` Jonas Steverud

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.