[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#16048: 24.3.50; String compare surprise
From: |
Eli Zaretskii |
Subject: |
bug#16048: 24.3.50; String compare surprise |
Date: |
Thu, 05 Dec 2013 19:38:51 +0200 |
> From: Michael Albinus <michael.albinus@gmx.de>
> Cc: Eli Zaretskii <eliz@gnu.org>, 16048@debbugs.gnu.org
> Date: Thu, 05 Dec 2013 08:51:41 +0100
>
> > IIUC this is dbus code, so it likely handles marshalled data, which
> > often has to manage bytes rather than chars, so a unibyte string might
> > be the right thing.
>
> Indeed. My ert test case is
>
> (should
> (string-equal
> (dbus-unescape-from-identifier
> (dbus-escape-as-identifier "0123abc_xyz\x01\xff"))
> "0123abc_xyz\x01\xff"))
FWIW, I don't see anything in this snippet that requires unibyte
strings.
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.
- bug#16048: 24.3.50; String compare surprise, michael . albinus, 2013/12/04
- bug#16048: 24.3.50; String compare surprise, Andreas Schwab, 2013/12/04
- bug#16048: 24.3.50; String compare surprise, Michael Albinus, 2013/12/04
- bug#16048: 24.3.50; String compare surprise, Eli Zaretskii, 2013/12/04
- bug#16048: 24.3.50; String compare surprise, Stefan Monnier, 2013/12/04
- bug#16048: 24.3.50; String compare surprise, Michael Albinus, 2013/12/05
- bug#16048: 24.3.50; String compare surprise,
Eli Zaretskii <=
- bug#16048: 24.3.50; String compare surprise, Stefan Monnier, 2013/12/05
- bug#16048: 24.3.50; String compare surprise, Eli Zaretskii, 2013/12/05
- bug#16048: 24.3.50; String compare surprise, Michael Albinus, 2013/12/05
- bug#16048: 24.3.50; String compare surprise, Michael Albinus, 2013/12/05