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: Michael Albinus
Subject: bug#16048: 24.3.50; String compare surprise
Date: Wed, 04 Dec 2013 15:05:00 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Andreas Schwab <schwab@linux-m68k.org> writes:

> michael.albinus@gmx.de writes:
>
>> The following form evals to nil:
>>
>>   (string-equal "\377" "ΓΏ")
>
> "\377" is a unibyte string.  When converted to multibyte it yields
> "\x3fffff".

Ah, well. In `dbus-unescape-from-identifier', there is

     (lambda (x) (format "%c" (string-to-number (substring x 1) 16)))

If I replace it by

     (lambda (x) (byte-to-string (string-to-number (substring x 1) 16)))

everything works fine.

> Andreas.

Thanks, and best regards, Michael (writng dbus-tests.el).





reply via email to

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