From unknown Fri Aug 15 17:19:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22830: Spurious bidi reordering 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: To: 22830@debbugs.gnu.org Cc: Eli Zaretskii X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.145658695227129 (code B ref -1); Sat, 27 Feb 2016 15:30:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Feb 2016 15:29:12 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_PCNT autolearn=disabled version=3.3.2 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 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 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 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 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) 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 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 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) Received: by igel.home (Postfix, from userid 1000) id 1F9422C00F0; Sat, 27 Feb 2016 16:28:56 +0100 (CET) From: Andreas Schwab X-Yow: Is something VIOLENT going to happen to a GARBAGE CAN? Date: Sat, 27 Feb 2016 16:28:56 +0100 Message-ID: <874mcup3yf.fsf@linux-m68k.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.5 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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." From unknown Fri Aug 15 17:19:53 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Andreas Schwab Subject: bug#22830: closed (Re: bug#22830: Spurious bidi reordering) Message-ID: References: <87ziumnnuy.fsf@linux-m68k.org> <874mcup3yf.fsf@linux-m68k.org> X-Gnu-PR-Message: they-closed 22830 X-Gnu-PR-Package: emacs Reply-To: 22830@debbugs.gnu.org Date: Sat, 27 Feb 2016 16:02:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1456588922-30230-1" This is a multi-part message in MIME format... ------------=_1456588922-30230-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #22830: Spurious bidi reordering which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 22830@debbugs.gnu.org. --=20 22830: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D22830 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1456588922-30230-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 22830-done) by debbugs.gnu.org; 27 Feb 2016 16:02:01 +0000 Received: from localhost ([127.0.0.1]:49017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZhJg-0007rO-Ux for submit@debbugs.gnu.org; Sat, 27 Feb 2016 11:02:01 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:51731) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZhJf-0007rF-Ok for 22830-done@debbugs.gnu.org; Sat, 27 Feb 2016 11:02:00 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3qCCKL5s08z3hj7s for <22830-done@debbugs.gnu.org>; Sat, 27 Feb 2016 17:01:58 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3qCCKL3s3MzvdWc for <22830-done@debbugs.gnu.org>; Sat, 27 Feb 2016 17:01:58 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de 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 HCQdJxx7IAi2 for <22830-done@debbugs.gnu.org>; Sat, 27 Feb 2016 17:01:57 +0100 (CET) X-Auth-Info: CkHJfg71Khnz5WSXihfGXiCGMkXdlzd6jrMY77JAtlPSMMQ/2aptH3ciQsZIny4O 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 for <22830-done@debbugs.gnu.org>; Sat, 27 Feb 2016 17:01:57 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 744AD2C0CAF; Sat, 27 Feb 2016 17:01:57 +0100 (CET) From: Andreas Schwab To: 22830-done@debbugs.gnu.org Subject: Re: bug#22830: Spurious bidi reordering References: <874mcup3yf.fsf@linux-m68k.org> X-Yow: It was a JOKE!! Get it?? I was receiving messages from DAVID LETTERMAN!! YOW!! Date: Sat, 27 Feb 2016 17:01:57 +0100 In-Reply-To: <874mcup3yf.fsf@linux-m68k.org> (Andreas Schwab's message of "Sat, 27 Feb 2016 16:28:56 +0100") Message-ID: <87ziumnnuy.fsf@linux-m68k.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22830-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Fixed by 9e078e5. 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." ------------=_1456588922-30230-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 27 Feb 2016 15:29:12 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_PCNT autolearn=disabled version=3.3.2 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 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 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 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 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) 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 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 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) Received: by igel.home (Postfix, from userid 1000) id 1F9422C00F0; Sat, 27 Feb 2016 16:28:56 +0100 (CET) From: Andreas Schwab To: bug-gnu-emacs@gnu.org Subject: Spurious bidi reordering X-Yow: Is something VIOLENT going to happen to a GARBAGE CAN? Date: Sat, 27 Feb 2016 16:28:56 +0100 Message-ID: <874mcup3yf.fsf@linux-m68k.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: submit Cc: Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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." ------------=_1456588922-30230-1--