unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jonas Steverud <tvrud-usenet@spray.se>
Subject: Reading national characters in filenames on Mac OS X?
Date: Sat, 26 Apr 2003 09:18:42 +0200	[thread overview]
Message-ID: <m2llxxafql.fsf@bredband.net> (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  )

             reply	other threads:[~2003-04-26  7:18 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-26  7:18 Jonas Steverud [this message]
2003-04-26 14:29 ` Reading national characters in filenames on Mac OS X? 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2llxxafql.fsf@bredband.net \
    --to=tvrud-usenet@spray.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).