From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Piet van Oostrum Newsgroups: gmane.emacs.help Subject: Re: Reading national characters in filenames on Mac OS X? Date: 27 Apr 2003 16:28:42 +0200 Organization: Dept of Computer Science, Utrecht University, The Netherlands Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <843ck5e3il.fsf@lucy.is.informatik.uni-duisburg.de> <84ptn8xicr.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1051465556 21331 80.91.224.249 (27 Apr 2003 17:45:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 27 Apr 2003 17:45:56 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 27 19:45:55 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 199qDq-0005Xt-00 for ; Sun, 27 Apr 2003 19:45:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 199qDY-0004ji-01 for gnu-help-gnu-emacs@m.gmane.org; Sun, 27 Apr 2003 13:45:36 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.stueberl.de!solnet.ch!solnet.ch!surfnet.nl!ruu.nl!cs.uu.nl!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: modena.cs.uu.nl Original-X-Trace: june.cs.uu.nl 1051464825 8810 131.211.80.35 (27 Apr 2003 17:33:45 GMT) Original-X-Complaints-To: news@cs.uu.nl Original-NNTP-Posting-Date: Sun, 27 Apr 2003 17:33:45 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Xref: shelby.stanford.edu gnu.emacs.help:112418 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8916 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8916 >>>>> kai.grossjohann@gmx.net (Kai Großjohann) (KG) wrote: KG> Karl Eichwalder writes: >> kai.grossjohann@gmx.net (Kai Großjohann) writes: >> >>> (set-file-name-coding-system 'utf-8) should work, I'd think. >> >> This might work up to some degree. >> >> The crucial point is to use Emacs from CVS (trunk or unicode branch). >> Version 21.3 will expose problems sooner or later. KG> Which problems? I thought that it would work as a first KG> approximation, especially if you mainly need to support Latin-1 KG> characters in UTF-8 encoding. Of course, trying CJK stuff with the KG> UTF-8 support in Emacs 21.3 won't work. You can open and create the files and directories properly with the utf-8 file-name-coding. The only thing is dired will not display the filename properly. This is because Mac OSX uses normalised UTF-8 for the filenames, which means that the accent character is separated from the letter and put behind it. And Emacs UTF-8 implementation doesn't understand this. So Äventyr comes out as A?ventyr where the ? is actually the Unicode character 0x0308: COMBINING DIAERESIS = double dot above, umlaut = Greek dialytika = double derivative -- Piet van Oostrum URL: http://www.cs.uu.nl/~piet [PGP] Private email: P.van.Oostrum@hccnet.nl