From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?=C5=81ukasz?= Stelmach Newsgroups: gmane.emacs.bugs Subject: bug#5221: 23.1; read_escape too greedy with "\x" Date: Tue, 15 Dec 2009 13:29:33 +0100 Message-ID: <87fx7cpgia.fsf@dasa3.iem.pw.edu.pl> Reply-To: =?UTF-8?Q?=C5=81ukasz?= Stelmach , 5221@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1261060120 16616 80.91.229.12 (17 Dec 2009 14:28:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Dec 2009 14:28:40 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 17 15:28:33 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NLHLE-0002Km-Se for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Dec 2009 15:28:33 +0100 Original-Received: from localhost ([127.0.0.1]:33122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLHLE-0003cf-Rn for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Dec 2009 09:28:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NKWoT-000645-Gn for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2009 07:47:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NKWoO-0005vK-E1 for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2009 07:47:36 -0500 Original-Received: from [199.232.76.173] (port=34327 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NKWoO-0005v1-8A for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2009 07:47:32 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:50275) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NKWoN-0006ln-Nb for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2009 07:47:32 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBFClTDl000714; Tue, 15 Dec 2009 04:47:29 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nBFCZ5ut031948; Tue, 15 Dec 2009 04:35:05 -0800 Resent-Date: Tue, 15 Dec 2009 04:35:05 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: =?UTF-8?Q?=C5=81ukasz?= Stelmach Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Tue, 15 Dec 2009 12:35:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 5221 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.126088018931441 (code B ref -1); Tue, 15 Dec 2009 12:35:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 15 Dec 2009 12:29:49 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBFCTkZZ031438 for ; Tue, 15 Dec 2009 04:29:49 -0800 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NKWXB-0008Ql-PL for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2009 07:29:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NKWX7-0008Mw-Js for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2009 07:29:45 -0500 Original-Received: from [199.232.76.173] (port=43979 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NKWX7-0008Mk-7D for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2009 07:29:41 -0500 Original-Received: from charlie.iem.pw.edu.pl ([194.29.147.5]:38296) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NKWX4-0004ia-Rv for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2009 07:29:39 -0500 Original-Received: from dasa3.iem.pw.edu.pl (dasa3.iem.pw.edu.pl [194.29.147.110]) by charlie.iem.pw.edu.pl (8.11.7p1+Sun/8.10.2) with ESMTP id nBFCJpX04811 for ; Tue, 15 Dec 2009 13:19:51 +0100 (CET) Original-Received: from steelman by dasa3.iem.pw.edu.pl with local (Exim 4.69) (envelope-from ) id 1NKWWz-0001bH-FZ for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2009 13:29:33 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Solaris 8 (1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 15 Dec 2009 07:47:36 -0500 X-Mailman-Approved-At: Thu, 17 Dec 2009 09:22:14 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:33649 Archived-At: Emacs (read_escape() function at lread.c file) interpretinterprets "\x3a480" string as "0x3a480" instead of ":" and "480" coming next. Some software (most? gnupg to name one) assume these escapes represent single bytes. Try interpreting "\x3a480" in the *scratch* buffer. IMHO the while() loop in read_escape for c=3D'x' should depend on "count < 3" condition. Why would anyone use multibyte "\x" sequence instead of "\u" one anyway? In GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.16.6) of 2009-09-14 on nautilus, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.10604000 configured using `configure '--build=3Dx86_64-linux-gnu' '--host=3Dx86_64-= linux-gnu' '--prefix=3D/usr' '--sharedstatedir=3D/var/lib' '--libexecdir=3D= /usr/lib' '--localstatedir=3D/var/lib' '--infodir=3D/usr/share/info' '--man= dir=3D/usr/share/man' '--with-pop=3Dyes' '--enable-locallisppath=3D/etc/ema= cs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emac= s/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr= /share/emacs/23.1/leim' '--with-x=3Dyes' '--with-x-toolkit=3Dgtk' '--with-t= oolkit-scroll-bars' 'build_alias=3Dx86_64-linux-gnu' 'host_alias=3Dx86_64-l= inux-gnu' 'CFLAGS=3D-DDEBIAN -g -O2' 'LDFLAGS=3D-g' 'CPPFLAGS=3D'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: pl_PL.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: jabber-activity-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: m SPC =20 C-e ) C-j C-k C-k C-k C-k C-k C-h f =20 =20 ( d e c o d 0 c i=20 \ c=20 o d i n g - s t r i n g S-SPC " \ =20 3 a x 3 a " SPC '=20 u t f 8 ) C-j =20 - C-e C-j =20 4=20 8 0 C-e C-j C-x o C-x b B U G .=20 b =C5=82 =C4=99 =C4=85 d SPC j e s t SPC=20 w SPC =20 =20 =20 =20 c =20 5 b c C-e C-j=20 =20 =20 =20 =20 \ x C-e C-j =20 =20 =20 SPC k t =C3=B3 r e=20 SPC p o =C5=82 y k a SPC w i e c e j SPC n i =C5=BC SPC d w a=20 SPC z n a k i SPC M-q =20 C-e SPC=20 p o SPC " \ x " C-x C-s =20 M-x r e p o SPC r SPC - e m SPC=20 b SPC Recent messages: Entering debugger... Mark set Type C-x 4 C-o RET to restore the other window. Making completion list...done Making completion list...done Entering debugger... Mark set Saving file /tmp/asdf.txt... Wrote /tmp/asdf.txt Making completion list... --=20 Mi=C5=82ego dnia, =C5=81ukasz Stelmach