From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#22830: Spurious bidi reordering Date: Sat, 27 Feb 2016 16:28:56 +0100 Message-ID: <874mcup3yf.fsf@linux-m68k.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456587031 28863 80.91.229.3 (27 Feb 2016 15:30:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Feb 2016 15:30:31 +0000 (UTC) To: 22830@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 27 16:30:12 2016 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 1aZgos-0005D4-O9 for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Feb 2016 16:30:10 +0100 Original-Received: from localhost ([::1]:55199 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZgos-0002Rs-7G for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Feb 2016 10:30:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53732) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZgop-0002Px-Ff for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2016 10:30:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZgol-0005dL-FD for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2016 10:30:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51881) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZgol-0005dG-Bo for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2016 10:30:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aZgol-000751-4G for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2016 10:30:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Feb 2016 15:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22830 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.145658695227129 (code B ref -1); Sat, 27 Feb 2016 15:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Feb 2016 15:29:12 +0000 Original-Received: from localhost ([127.0.0.1]:49008 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZgnw-00073V-1C for submit@debbugs.gnu.org; Sat, 27 Feb 2016 10:29:12 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34376) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZgnu-00073K-9F for submit@debbugs.gnu.org; Sat, 27 Feb 2016 10:29:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZgno-0005W3-7W for submit@debbugs.gnu.org; Sat, 27 Feb 2016 10:29:05 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:38488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZgno-0005Vy-55 for submit@debbugs.gnu.org; Sat, 27 Feb 2016 10:29:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZgnn-0002Ew-1J for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2016 10:29:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZgni-0005Tv-TK for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2016 10:29:02 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.9]:36601) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZgni-0005Tk-NN; Sat, 27 Feb 2016 10:28:58 -0500 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3qCBbF4TT6z3hj77; Sat, 27 Feb 2016 16:28:57 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3qCBbF3VbqzvdWc; Sat, 27 Feb 2016 16:28:57 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id l96MUnwu7qGa; Sat, 27 Feb 2016 16:28:56 +0100 (CET) X-Auth-Info: wDChNTPq2/IJMsY9+NyFuDMbCAl/OrMZgFRhz0bNQ/CBbTclSsEDKseUbCmqVaMt Original-Received: from igel.home (ppp-88-217-13-181.dynamic.mnet-online.de [88.217.13.181]) by mail.mnet-online.de (Postfix) with ESMTPA; Sat, 27 Feb 2016 16:28:56 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 1000) id 1F9422C00F0; Sat, 27 Feb 2016 16:28:56 +0100 (CET) X-Yow: Is something VIOLENT going to happen to a GARBAGE CAN? User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.91 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:113957 Archived-At: When inserting the three characters "\1%&" into a buffer the last two characters are reordered as if they were L2R characters. This only happens on powerpc and aarch64, which is a strong indication that the bidi code fails to take the signedness of char into account. In fact, compiling bidi.c with -funsigned-char is enough to break it. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."