GNU bug report logs - #16048
24.3.50; String compare surprise

Previous Next

Package: emacs;

Reported by: michael.albinus <at> gmx.de

Date: Wed, 4 Dec 2013 11:45:03 UTC

Severity: normal

Found in version 24.3.50

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 16048-done <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 16048-done <at> debbugs.gnu.org
Subject: Re: bug#16048: 24.3.50; String compare surprise
Date: Wed, 04 Dec 2013 15:05:00 +0100
Andreas Schwab <schwab <at> linux-m68k.org> writes:

> michael.albinus <at> 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).




This bug report was last modified 11 years and 221 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.