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


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: michael.albinus <at> gmx.de
Subject: bug#16048: closed (Re: bug#16048: 24.3.50; String compare surprise)
Date: Wed, 04 Dec 2013 14:06:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#16048: 24.3.50; String compare surprise

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 16048 <at> debbugs.gnu.org.

-- 
16048: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16048
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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).

[Message part 3 (message/rfc822, inline)]
From: michael.albinus <at> gmx.de
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; String compare surprise
Date: Wed, 04 Dec 2013 12:44:18 +0100
The following form evals to nil:

  (string-equal "\377" "ÿ")

The character code of "ÿ" is

Char: ÿ (255, #o377, #xff, file ...) point=244 of 5726 (4%) column=23




In GNU Emacs 24.3.50.10 (i686-pc-linux-gnu, GTK+ Version 2.24.10)
 of 2013-12-03 on uw001237
Bzr revision: 115361 rudalics <at> gmx.at-20131203074554-p6glzuiqh5zp4k97
Windowing system distributor `The X.Org Foundation', version 11.0.11103000
System Description:	Ubuntu 12.04.3 LTS

Important settings:
  value of $LC_MONETARY: en_US.UTF-8
  value of $LC_NUMERIC: en_US.UTF-8
  value of $LC_TIME: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Group

Minor modes in effect:
  gnus-undo-mode: t
  erc-notify-mode: t
  erc-list-mode: t
  erc-menu-mode: t
  erc-autojoin-mode: t
  erc-ring-mode: t
  erc-networks-mode: t
  erc-pcomplete-mode: t
  erc-track-mode: t
  erc-match-mode: t
  erc-button-mode: t
  erc-fill-mode: t
  erc-stamp-mode: t
  erc-netsplit-mode: t
  erc-irccontrols-mode: t
  erc-noncommands-mode: t
  erc-move-to-prompt-mode: t
  erc-readonly-mode: t
  display-time-mode: t
  shell-dirtrack-mode: t
  iswitchb-mode: t
  icomplete-mode: t
  show-paren-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<f2> C-g y <escape> x r e p o r t <tab> <return>

Recent messages:
Opening TLS connection to `imap.gmx.net'...done
Opening connection to imap.gmx.net...done
Reading active file via nnml...
Reading incoming mail from file...
nnml: Reading incoming mail (no new mail)...done
Reading active file via nnml...done
Reading active file via nndraft...done
nnimap read 0k from imap.gmx.net
Checking new news...done
Warning: Quit trying to open server nnimap+email.tieto.com

Load-path shadows:
/home/albinmic/src/elpa/packages/debbugs/debbugs hides /home/albinmic/.emacs.d/elpa/debbugs-0.5/debbugs
/home/albinmic/src/elpa/packages/debbugs/debbugs-gnu hides /home/albinmic/.emacs.d/elpa/debbugs-0.5/debbugs-gnu
/home/albinmic/src/elpa/packages/debbugs/debbugs-org hides /home/albinmic/.emacs.d/elpa/debbugs-0.5/debbugs-org
/home/albinmic/src/elpa/packages/debbugs/debbugs-pkg hides /home/albinmic/.emacs.d/elpa/debbugs-0.5/debbugs-pkg
/home/albinmic/src/elpa/packages/debbugs/debbugs-autoloads hides /home/albinmic/.emacs.d/elpa/debbugs-0.5/debbugs-autoloads
~/src/tramp/lisp/tramp-cache hides /home/albinmic/src/emacs/lisp/net/tramp-cache
~/src/tramp/lisp/tramp-cmds hides /home/albinmic/src/emacs/lisp/net/tramp-cmds
~/src/tramp/lisp/tramp-adb hides /home/albinmic/src/emacs/lisp/net/tramp-adb
~/src/tramp/lisp/trampver hides /home/albinmic/src/emacs/lisp/net/trampver
~/src/tramp/lisp/tramp-smb hides /home/albinmic/src/emacs/lisp/net/tramp-smb
~/src/tramp/lisp/tramp hides /home/albinmic/src/emacs/lisp/net/tramp
~/src/tramp/lisp/tramp-ftp hides /home/albinmic/src/emacs/lisp/net/tramp-ftp
~/src/tramp/lisp/tramp-gw hides /home/albinmic/src/emacs/lisp/net/tramp-gw
~/src/tramp/lisp/tramp-gvfs hides /home/albinmic/src/emacs/lisp/net/tramp-gvfs
~/src/tramp/lisp/tramp-uu hides /home/albinmic/src/emacs/lisp/net/tramp-uu
~/src/tramp/lisp/tramp-sh hides /home/albinmic/src/emacs/lisp/net/tramp-sh
~/src/tramp/lisp/tramp-compat hides /home/albinmic/src/emacs/lisp/net/tramp-compat
~/src/tramp/lisp/tramp-loaddefs hides /home/albinmic/src/emacs/lisp/net/tramp-loaddefs

Features:
(shadow sort mail-extr warnings emacsbug utf-7 nndraft nnmh nnml
gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art
mm-uu mml2015 epg-config mm-view mml-smime smime dig mailcap gnus-cache
gnus-sum network-stream starttls nnimap parse-time tls utf7 netrc
smtpmail sendmail gnus-demon nntp gnus-group gnus-undo nnmail
mail-source nnoo gnus-start gnus-spec gnus-int gnus-range message rfc822
mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047
rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus
gnus-ems nnheader mail-utils erc-notify erc-list erc-menu erc-join
erc-ring erc-networks erc-pcomplete erc-track erc-match erc-button
wid-edit erc-fill erc-stamp erc-netsplit erc-goodies erc erc-backend
erc-compat thingatpt pp cperl-mode info easymenu package time tramp
tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv
eieio-core gnus-util mm-util mail-prsvr password-cache tramp-loaddefs
cl-macs gv trampver shell pcomplete comint ansi-color ring format-spec
advice help-fns cl cl-loaddefs cl-lib iswitchb jka-compr icomplete paren
ps-print ps-def lpr vc vc-dispatcher dired time-date tooltip electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)



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

Previous Next


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