GNU bug report logs - #30219
ert explainer for `equal' fails for equal-but-for-multibyte-ness strings

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Philipp <p.stephani2@HIDDEN>; Keywords: confirmed; dated Mon, 22 Jan 2018 22:56:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) confirmed. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Severity set to 'minor' from 'normal' Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Changed bug title to 'ert explainer for `equal' fails for equal-but-for-multibyte-ness strings' from '27.0.50; (should (equal ...)) bug for string equality' Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 22 Jan 2018 22:55:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 22 17:55:30 2018
Received: from localhost ([127.0.0.1]:38707 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1edkzx-000238-NP
	for submit <at> debbugs.gnu.org; Mon, 22 Jan 2018 17:55:30 -0500
Received: from eggs.gnu.org ([208.118.235.92]:47129)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <p.stephani2@HIDDEN>) id 1edkzv-00022s-Ul
 for submit <at> debbugs.gnu.org; Mon, 22 Jan 2018 17:55:28 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <p.stephani2@HIDDEN>) id 1edkzp-00051i-R5
 for submit <at> debbugs.gnu.org; Mon, 22 Jan 2018 17:55:22 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: *
X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50,
 FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:35573)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <p.stephani2@HIDDEN>)
 id 1edkzp-00051c-Mm
 for submit <at> debbugs.gnu.org; Mon, 22 Jan 2018 17:55:21 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:38098)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <p.stephani2@HIDDEN>) id 1edkzo-0002Vj-BD
 for bug-gnu-emacs@HIDDEN; Mon, 22 Jan 2018 17:55:21 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <p.stephani2@HIDDEN>) id 1edkzn-00050n-CA
 for bug-gnu-emacs@HIDDEN; Mon, 22 Jan 2018 17:55:20 -0500
Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:36072)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <p.stephani2@HIDDEN>)
 id 1edkzn-00050D-1b
 for bug-gnu-emacs@HIDDEN; Mon, 22 Jan 2018 17:55:19 -0500
Received: by mail-wm0-x22d.google.com with SMTP id f3so19988057wmc.1
 for <bug-gnu-emacs@HIDDEN>; Mon, 22 Jan 2018 14:55:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:subject:date:message-id:mime-version;
 bh=ZXxzkfwar7n/EzYG3X98wPZ6EED+w99mBnmXdRuACcI=;
 b=uWihP7HRkLUhN9w8kWNHVJTw/5i4h4bNK7lNg0KrK1oQgy4MTbS1h2N2HMqopi0ilY
 Byv2QcANvHtqUQXCGJMrVYfxZMwvSQ2ouKNoaii2WrPOjTI/pagV0GFTTJ/XIGMZrT3h
 EtI3qr9n4FButzlytomolZI/lUmVzxfCqDMyQih19d8SD0kkUa9N7A1jCA3PCaTRyc41
 u85eypzJHEZDIjxxXL6dET+a6cdaRDP7UkCNKZKa6RA0nslV65dOkFkZkCD1OW1R0ki0
 1wp2curD34Nl12ay+ZQGWwKfhpjbupZLAszEUYiQA9ZtcivvuhjQectpCFbJS95ow3bc
 518w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:date:message-id:mime-version;
 bh=ZXxzkfwar7n/EzYG3X98wPZ6EED+w99mBnmXdRuACcI=;
 b=BPcrRjoh0Gvry1i0WO8r+YCp6knqkBj8mXmUpw1tWzWk1BF2X8FXNtZFxsN+SMBxzK
 NosJjUz7SirgY5kLBLdXcFW2d0bsq7KL7EVnxoaISIIfsSitqz8agMpsNkgDWBch/vtd
 xAp0jj7RwX+wWUvfUtz7gb+9jGGHPfuCZzrIwq6HXj9DwPUkJobPtQD0tKP6Uz1zPJS7
 8P0h6nfqEmpQmQ5IV7ThB1sWR1ybjEJ9A0Fa6rjn54zG88Wd/4ucnnGSRHOk75h/rSQE
 xw1Ez/hbwNrG8kBSZ3+xO5491xSZmxUEzwtuUNYnQE1DxNx27xEKrls21nacnoATuiIs
 tL2Q==
X-Gm-Message-State: AKwxytcft3FQdTucAQ/6SByGE0Ug9lG+yz8nxm4RBsShuT5RIYbFaSdK
 nILcMM06/clDcBsGUCJuOQ64Wc2Q
X-Google-Smtp-Source: AH8x226rZgryb41knQ9OjAGo8/KWJX3q/nJeJsWwMA/KVK9OZN4RkSsYjz8SarukY09bOvAv06OKcw==
X-Received: by 10.28.107.134 with SMTP id a6mr243332wmi.136.1516661717424;
 Mon, 22 Jan 2018 14:55:17 -0800 (PST)
Received: from p ([2001:4c50:25a:2900:6025:5aaa:914f:aa4f])
 by smtp.gmail.com with ESMTPSA id j132sm2521019wmd.38.2018.01.22.14.55.16
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Mon, 22 Jan 2018 14:55:16 -0800 (PST)
From: Philipp <p.stephani2@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.0.50; (should (equal ...)) bug for string equality
Date: Mon, 22 Jan 2018 23:55:13 +0100
Message-ID: <m2d121ld0u.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.8 (---)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.8 (---)


Define the following ERT test:

(ert-deftest foo ()
  (should (equal "a\xFF" "a\u00FF")))

Then run M-x ert.  The test triggers an assertion.  This is because ERT
incorrectly assumes that two arrays are equal if their lengths and
elements are equal, but that's not the case when comparing unibyte and
multibyte strings.


In GNU Emacs 27.0.50 (build 10, x86_64-apple-darwin17.3.0, NS appkit-1561.20 Version 10.13.2 (Build 17C205))
 of 2018-01-22 built on p
Repository revision: 3558d96b60393893a346f4382b813ca0738f9d9b
Windowing system distributor 'Apple', version 10.3.1561
System Description:  Mac OS X 10.13.2

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Configured using:
 'configure --without-threads --with-modules --without-pop
 --with-mailutils --enable-gcc-warnings=yes --enable-checking
 --enable-check-lisp-object-type 'CFLAGS=-ggdb3 -O0''

Configured features:
NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES JSON

Important settings:
  value of $LANG: de_DE.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-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
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv
bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg
epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils elec-pair time-date
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core term/tty-colors frame cl-generic
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer
cl-preloaded 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 kqueue cocoa ns
multi-tty make-network-process emacs)

Memory information:
((conses 16 204871 8960)
 (symbols 48 20154 1)
 (miscs 40 57 145)
 (strings 32 28911 1996)
 (string-bytes 1 771735)
 (vectors 16 35241)
 (vector-slots 8 721940 14772)
 (floats 8 52 64)
 (intervals 56 208 0)
 (buffers 992 11))




Acknowledgement sent to Philipp <p.stephani2@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#30219; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 9 Feb 2018 02:45:01 UTC

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