From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#16048: 24.3.50; String compare surprise Date: Thu, 05 Dec 2013 19:38:51 +0200 Message-ID: <83k3fj2o5w.fsf@gnu.org> References: <87r49six1s.fsf@igel.home> <878uw0ogoj.fsf@gmx.de> <83zjog34gi.fsf@gnu.org> <87vbz3ybua.fsf@gmx.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1386265217 26497 80.91.229.3 (5 Dec 2013 17:40:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Dec 2013 17:40:17 +0000 (UTC) Cc: 16048@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 05 18:40:19 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VocuR-0005IN-1K for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Dec 2013 18:40:19 +0100 Original-Received: from localhost ([::1]:54929 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VocuQ-0007Er-N7 for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Dec 2013 12:40:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VocuI-0007Eh-Hn for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2013 12:40:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VocuD-0000f6-Dn for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2013 12:40:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46139) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VocuD-0000f0-Ay for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2013 12:40:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VocuC-00022d-1m for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2013 12:40:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Dec 2013 17:40:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16048 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16048-submit@debbugs.gnu.org id=B16048.13862651517775 (code B ref 16048); Thu, 05 Dec 2013 17:40:03 +0000 Original-Received: (at 16048) by debbugs.gnu.org; 5 Dec 2013 17:39:11 +0000 Original-Received: from localhost ([127.0.0.1]:60157 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VoctK-00021K-Ek for submit@debbugs.gnu.org; Thu, 05 Dec 2013 12:39:10 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:46571) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VoctG-000219-0y for 16048@debbugs.gnu.org; Thu, 05 Dec 2013 12:39:07 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MXC00B00GVAR700@a-mtaout23.012.net.il> for 16048@debbugs.gnu.org; Thu, 05 Dec 2013 19:39:04 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MXC00BLAH14OQ60@a-mtaout23.012.net.il>; Thu, 05 Dec 2013 19:39:04 +0200 (IST) In-reply-to: <87vbz3ybua.fsf@gmx.de> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:81445 Archived-At: > From: Michael Albinus > Cc: Eli Zaretskii , 16048@debbugs.gnu.org > Date: Thu, 05 Dec 2013 08:51:41 +0100 > > > IIUC this is dbus code, so it likely handles marshalled data, which > > often has to manage bytes rather than chars, so a unibyte string might > > be the right thing. > > Indeed. My ert test case is > > (should > (string-equal > (dbus-unescape-from-identifier > (dbus-escape-as-identifier "0123abc_xyz\x01\xff")) > "0123abc_xyz\x01\xff")) FWIW, I don't see anything in this snippet that requires unibyte strings. Just to make it clear: Emacs is perfectly capable of holding raw bytes in multibyte strings. That's why we have the eight-bit charset.