[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: utf-16le vs utf-16-le
From: |
Eli Zaretskii |
Subject: |
Re: utf-16le vs utf-16-le |
Date: |
Tue, 15 Apr 2008 06:25:47 +0300 |
> From: "Stephen J. Turnbull" <address@hidden>
> Date: Tue, 15 Apr 2008 06:01:14 +0900
> Cc: address@hidden
>
> Eli Zaretskii writes:
>
> > Which 9 are needed by UTF-8? I only see 4: the auto-detecting one,
> > then one each for -unix. -dos, and -mac. What am I missing?
>
> BOM-{prohibited,auto,required}.
But we don't have these in Emacs, do we?
> > Don't forget that en/decoding is used on strings as well, not only on
> > buffers. Buffer-local variables won't cut it, I think.
>
> Strings don't have encoding signatures or newline variants
??? Of course, they do. Emacs has no way of knowing what will be done
with the encoded string; in particular, you might well insert it into
a buffer or append it to a file. Are you saying that Emacs should, at
the time of actual use of the string re-en/decode it according to
usage?
> those octet sequences if present in a string are merely binary octet
> sequences. They only have special semantics in external
> representations. Where's the problem?
A string can be sent to a process, for example, so we must have some
way of generating an external representation for it.
- Re: utf-16le vs utf-16-le, (continued)
- utf-16le vs utf-16-le, Stephen J. Turnbull, 2008/04/13
- Re: utf-16le vs utf-16-le, Eli Zaretskii, 2008/04/13
- Re: utf-16le vs utf-16-le, Stephen J. Turnbull, 2008/04/14
- Re: utf-16le vs utf-16-le, David Kastrup, 2008/04/14
- Re: utf-16le vs utf-16-le, Stephen J. Turnbull, 2008/04/14
- Re: utf-16le vs utf-16-le, Eli Zaretskii, 2008/04/14
- Re: utf-16le vs utf-16-le, Stephen J. Turnbull, 2008/04/14
- Re: utf-16le vs utf-16-le, Andreas Schwab, 2008/04/14
- Re: utf-16le vs utf-16-le, Stephen J. Turnbull, 2008/04/14
- Re: utf-16le vs utf-16-le,
Eli Zaretskii <=
- Re: utf-16le vs utf-16-le, Stephen J. Turnbull, 2008/04/15
- Re: utf-16le vs utf-16-le, Eli Zaretskii, 2008/04/15
- Re: utf-16le vs utf-16-le, Eli Zaretskii, 2008/04/15
- Re: utf-16le vs utf-16-le, David Kastrup, 2008/04/15
- Re: utf-16le vs utf-16-le, Stephen J. Turnbull, 2008/04/16
- Re: utf-16le vs utf-16-le, David Kastrup, 2008/04/16
- Re: utf-16le vs utf-16-le, Stephen J. Turnbull, 2008/04/16
- Re: utf-16le vs utf-16-le, Eli Zaretskii, 2008/04/16
- Re: utf-16le vs utf-16-le, Stephen J. Turnbull, 2008/04/17
- Re: utf-16le vs utf-16-le, Jan Djärv, 2008/04/17