[Top][All Lists]

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

Re: Unibyte characters, strings, and buffers

From: Andreas Schwab
Subject: Re: Unibyte characters, strings, and buffers
Date: Sat, 29 Mar 2014 12:30:51 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

> Next question: what happens to implementation of encoding?  It
> currently produces raw bytes.  Should it produce eight-bit characters
> instead?  If not, who or what will convert raw bytes into eight-bit
> characters, when they are inserted into a buffer or string, and who or
> what will convert them back when they are written to a file or sent to
> a process?

Writing out a character in the eight-bit charset will produce an
eight-bit character, and vice-versa.

The process is the same, just put on a lower level.  The only visible
difference will be the value of aref: it will produce values in the
range of the eight-bit charset instead of 128-255.  The challenge will
be to find and fix all such assumptions.


Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

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