From: Mattias Engdegård Date: Thu, 10 Oct 2019 19:20:20 +0000 (+0200) Subject: Correctly explain test failures with mixed uni/multibyte strings X-Git-Tag: emacs-27.0.90~1101 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=67ed6ee7337d66dc1101e41bc2e67bde5ab0ecd4;p=emacs.git Correctly explain test failures with mixed uni/multibyte strings * lisp/emacs-lisp/ert.el (ert--explain-equal-rec): * test/lisp/emacs-lisp/ert-tests.el (ert-test-explain-equal): When explaining a difference between a unibyte and a multibyte string, first convert both to multibyte. Otherwise, we might end up comparing unibyte char C to multibyte char C, 127