[Top][All Lists]
[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: |
Fri, 09 Nov 2007 19:34:54 +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:
>>> But it will fail in Emacs-22 if the file (which contains file names)
>>> contains chars that Emacs-22 doesn't know how to encode to (and decode
>>> from) utf-8.
> > Are there any such chars that are likely to be used in filenames? Or is it
> > just the mule specific charsets that Emacs-22 cannot encode as utf-8.
> It's actually a bit worse: it shouldn't just be encodable with utf-8,
> but it should also be the case that encoding to utf-8 and back should
> return the exact same string (since these are filenames and will be
> compared with simple byte-comparison in the kernel).
I think the important thing is to assure the round-trip of
decode&encode (not encode&decode). And utf-8 should
preserve exact byte sequence on decode&encode.
---
Kenichi Handa
address@hidden
- Re: Encoding for a file containing filenames?, (continued)
- Re: Encoding for a file containing filenames?, Jason Rumney, 2007/11/08
- Re: Encoding for a file containing filenames?, Stefan Monnier, 2007/11/08
- Re: Encoding for a file containing filenames?, Eli Zaretskii, 2007/11/09
- Re: Encoding for a file containing filenames?, Jan Djärv, 2007/11/09
- Re: Encoding for a file containing filenames?, Andreas Schwab, 2007/11/09
- Re: Encoding for a file containing filenames?, Eli Zaretskii, 2007/11/09
- Re: Encoding for a file containing filenames?, Jan Djärv, 2007/11/09
- Re: Encoding for a file containing filenames?, Kenichi Handa, 2007/11/09
- Re: Encoding for a file containing filenames?, Andreas Schwab, 2007/11/09
- Re: Encoding for a file containing filenames?, Eli Zaretskii, 2007/11/09
- Re: Encoding for a file containing filenames?,
Kenichi Handa <=
- Re: Encoding for a file containing filenames?, Stefan Monnier, 2007/11/09
- Re: Encoding for a file containing filenames?, Kenichi Handa, 2007/11/09
- Re: Encoding for a file containing filenames?, Kenichi Handa, 2007/11/08
- Re: Encoding for a file containing filenames?, Juanma Barranquero, 2007/11/08
- Re: Encoding for a file containing filenames?, Kenichi Handa, 2007/11/08