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

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

bug#16048: 24.3.50; String compare surprise


From: Stefan Monnier
Subject: bug#16048: 24.3.50; String compare surprise
Date: Thu, 05 Dec 2013 14:11:11 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> Just to make it clear: Emacs is perfectly capable of holding raw bytes
> in multibyte strings.  That's why we have the eight-bit charset.

When manipulating sequences of bytes (as opposed to sequences of chars),
I find it is preferable to use unibyte strings.

Indeed, multibyte strings can work as well, but they can be more tricky
to work with since `aref' returns a "eight-bit byte" character rather
than a value between 128-255.

Of course, if your string can contain a mix of bytes and chars, you
don't have a choice.


        Stefan





reply via email to

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