[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
is this a bug? string-equal seems to act strangely
From: |
Chris |
Subject: |
is this a bug? string-equal seems to act strangely |
Date: |
Thu, 11 Jan 2007 13:33:07 +0100 |
Hex 80 is equal to octal 200, so why does string-equal give these results?
ELISP> (string-equal "\200\x80" "\x80\200")
t
ELISP> (string-equal "\200" "\x80")
nil
In GNU Emacs 22.0.92.4 (i686-pc-linux-gnu, GTK+ Version 2.8.20)
of 2007-01-10 on trpaslik
X server distributor `The X.Org Foundation', version 11.0.70101000
configured using `configure '--with-gtk' '--prefix' '/usr/local' '--with-xpm'
'--with-jpeg' '--with-png' '--with-gif''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_GB.UTF-8
locale-coding-system: utf-8
default-enable-multibyte-characters: t
Major mode: IELM
Minor modes in effect:
shell-dirtrack-mode: t
show-paren-mode: t
iswitchb-mode: t
tooltip-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
unify-8859-on-encoding-mode: t
utf-translate-cjk-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
- is this a bug? string-equal seems to act strangely,
Chris <=