emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Encoding for a file containing filenames?


From: Kenichi Handa
Subject: Re: Encoding for a file containing filenames?
Date: Sat, 10 Nov 2007 10:10:51 +0900
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

In article <address@hidden>, Stefan Monnier <address@hidden> writes:

> > I think the important thing is to assure the round-trip of
> > decode&encode (not encode&decode).

> Are you sure?  The situation is that we have a file name as an Emacs
> string (i.e. decoded say from "locale" coding system) and we need to
> store it into a file to load it back in a later Emacs invocation (at
> which point we may use it to access the file, using hopefully the same
> "locale" coding system).

> So what needs to be byte-preserving is really:

>   locale-decode -> utf8-encode -> utf8-decode -> locale-encode

Ah, I misunderstood the situation, sorry.  You are right.

---
Kenichi Handa
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]