Subject: Re: bug#16048: 24.3.50; String compare surprise
From: Michael Albinus <[email-masked]>
To: Andreas Schwab <[email-masked]>
Cc: [email-masked]
Date: Wed, 04 Dec 2013 15:05:00 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Andreas Schwab <[email-masked]> writes:

> [email-masked] 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).