[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#16048: closed (24.3.50; String compare surprise)

From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#16048: closed (24.3.50; String compare surprise)
Date: Wed, 04 Dec 2013 14:06:02 +0000

Your message dated Wed, 04 Dec 2013 15:05:00 +0100
with message-id <address@hidden>
and subject line Re: bug#16048: 24.3.50; String compare surprise
has caused the debbugs.gnu.org bug report #16048,
regarding 24.3.50; String compare surprise
to be marked as done.

(If you believe you have received this mail in error, please contact

16048: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16048
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- 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 (i686-pc-linux-gnu, GTK+ Version 2.24.10)
 of 2013-12-03 on uw001237
Bzr revision: 115361 address@hidden
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/src/elpa/packages/debbugs/debbugs-gnu hides 
/home/albinmic/src/elpa/packages/debbugs/debbugs-org hides 
/home/albinmic/src/elpa/packages/debbugs/debbugs-pkg hides 
/home/albinmic/src/elpa/packages/debbugs/debbugs-autoloads hides 
~/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 
~/src/tramp/lisp/tramp-loaddefs hides 

(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)

--- End Message ---
--- Begin Message --- Subject: Re: 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 <address@hidden> writes:

> address@hidden 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).

--- End Message ---

reply via email to

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