help-gnu-emacs
[Top][All Lists]
Advanced

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

RE: [Solved] RE: Differences between identical strings in Emacs lisp


From: Jürgen Hartmann
Subject: RE: [Solved] RE: Differences between identical strings in Emacs lisp
Date: Thu, 9 Apr 2015 12:36:32 +0200

Thank you, Eli Zaretskii, for your answer:

>> [About mapping between unibyte and multibyte strings]
>>
>> On which occasion such a conversion is done?
>
> One example that comes to mind is (insert 160), i.e. when inserting
> text into a buffer.  There are other examples, but I simply don't
> remember them at the moment.
>
>> Has this anything to do with the the charset that is individually
>> defined in language-info-alist for nearly each language environment?
>
> No, I think Emacs converts the value to the character that has the
> same Unicode codepoint.

I see.

>> It seems that all my related observations that puzzled me before can be well
>> explained by the strict distinction between characters and raw bytes and the
>> mapping between the latter's integer representations in the range
>> [0x80..0xFF] in an unibyte context and in the range [0x3FFF80..0x3FFFFF] in a
>> multibyte context.
>
> Pretty much, yes.

Thank you for the confirmation.

Juergen

                                          


reply via email to

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