From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#2416: marked as done (23.0.60; decode-coding-region) Date: Sun, 22 Feb 2009 18:20:03 +0000 Message-ID: References: <87eixqz6bc.fsf@cyd.mit.edu> <499f1cdd.050cc00a.4267.ffffc0ce@mx.google.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1235326803-22187-2" X-Trace: ger.gmane.org 1235327046 27387 80.91.229.12 (22 Feb 2009 18:24:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Feb 2009 18:24:06 +0000 (UTC) To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 22 19:25:21 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 1LbJ0y-0001FX-Ti for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Feb 2009 19:25:21 +0100 Original-Received: from localhost ([127.0.0.1]:43019 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LbIze-0003Ze-8d for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Feb 2009 13:23:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LbIzN-0003Vd-Mn for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2009 13:23:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LbIzM-0003V1-Db for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2009 13:23:41 -0500 Original-Received: from [199.232.76.173] (port=47219 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LbIzL-0003Uf-Qr for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2009 13:23:39 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:39256) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LbIzL-0005FL-2m for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2009 13:23:39 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1MINaMa023348; Sun, 22 Feb 2009 10:23:37 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1MIK3YO022305; Sun, 22 Feb 2009 10:20:03 -0800 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: closed 2416 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:25595 Archived-At: This is a multi-part message in MIME format... ------------=_1235326803-22187-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Sun, 22 Feb 2009 13:15:35 -0500 with message-id <87eixqz6bc.fsf@cyd.mit.edu> and subject line Re: bug#1809: decode-coding-inserted-region corrupts files has caused the Emacs bug report #1809, regarding 23.0.60; decode-coding-region to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com immediately.) --=20 1809: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D1809 Emacs Bug Tracking System Contact owner@emacsbugs.donarmstrong.com with problems ------------=_1235326803-22187-2 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 20 Feb 2009 21:13:09 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.9 required=4.0 tests=FOURLA,MSGID_FROM_MTA_HEADER, MURPHY_DRUGS_REL8 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1KLD5B6016782 for ; Fri, 20 Feb 2009 13:13:07 -0800 Received: from mail.gnu.org ([199.232.76.166]:32834 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Lace7-0004r6-Bq for emacs-pretest-bug@gnu.org; Fri, 20 Feb 2009 16:10:55 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LacgC-0007Kz-0d for emacs-pretest-bug@gnu.org; Fri, 20 Feb 2009 16:13:04 -0500 Received: from mail-qy0-f20.google.com ([209.85.221.20]:58115) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LacgB-0007Kh-MI for emacs-pretest-bug@gnu.org; Fri, 20 Feb 2009 16:13:03 -0500 Received: by qyk13 with SMTP id 13so1796465qyk.18 for ; Fri, 20 Feb 2009 13:13:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:sender :received:from:to:subject:x-spam-processed:x-mdremoteip :x-return-path:x-mdaemon-deliver-to; bh=YMUIBpo5rEqOH1LjhjTdSzdmAWhVBft/K5Ox5Uygmr4=; b=gqulQNdtQ8Tgkk3XhdFTaeEbUnhmT+NZ6C9EW0j/kXRM7ddTpKBy4yfiWcdfxwT11U gbR8lq6HrJaOy/LT1YAv85ONx76SfhrvOHHq8oXnGi0Sz5i+A2O16XHsXG1MEp0+OTOI B64wOjGCsPIgmYg+OzRd6HrZ1qTVl5NvVo7ms= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:sender:from:to:subject:x-spam-processed :x-mdremoteip:x-return-path:x-mdaemon-deliver-to; b=sDKmg2WVoW2n4kRm+GtHb8ToWqJ21lsyZmMIQ9Vza05lqthGGgnHMqqB8ksyJCqP/0 sHEeJ+5l5J5e+gjUBD6k4sWjh7+BQ6FAqpfiKMARb9Da7WMDN7CNJTYJI+hhuYoO2QlO 9HH597BXOz28CW9TUnUpbselVEqNFj04pHxus= Received: by 10.224.20.10 with SMTP id d10mr2243119qab.35.1235164382203; Fri, 20 Feb 2009 13:13:02 -0800 (PST) Received: from greenplace.page.us (c-68-33-70-96.hsd1.md.comcast.net [68.33.70.96]) by mx.google.com with ESMTPS id 5sm1012912ywl.28.2009.02.20.13.13.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 20 Feb 2009 13:13:01 -0800 (PST) Message-ID: <499f1cdd.050cc00a.4267.ffffc0ce@mx.google.com> Date: Fri, 20 Feb 2009 13:13:01 -0800 (PST) Sender: MJ Chan Received: from T42 ([127.0.0.1]) by local (greenplace.page.us [127.0.0.1]) (MDaemon.PRO.v6.8.5.R) with ESMTP id 21-md50000000001.tmp for ; Fri, 20 Feb 2009 16:12:58 -0500 From: mj To: emacs-pretest-bug@gnu.org Subject: 23.0.60; decode-coding-region X-MDRemoteIP: 127.0.0.1 X-Return-Path: mjchan.inbox@gmail.com X-MDaemon-Deliver-To: emacs-pretest-bug@gnu.org X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) I have been having this problem since I switched to Emacs 23 several weeks ago. I'm using VM to read my mails. There seems to be a problem in decode-coding-region when VM tries to decode a string. When VM tries to decode a region or a string, it uses a temporary buffer and basically runs the following lisp code: (apply 'decode-coding-region (point-min) (point-max) 'us-ascii nil) The original buffer content would be something like this: B7040400-12 some text here after decode-coding-region is executed, the buffer content became: ^@7040450-12 some text here Where ^@ is actually binary code \0 (not ascii ^ and @). There is another instance that a string was decoded and the result is ^@ prefixed. I could not reproduce this with "Emacs -Q". But it always happens when thsoe particular messages were processed by VM. Strangely enough, if I inserted a few spaces at the beginning of buffer: (one space in the following buffer) B7040400-12 some text here And, the decoding was done correctly. In another instance mentioned above, one space is not enough. I had to put several spaces to get the decoding working. I saw another bug report just yesterday regarding decode-coding-region crashing. I applied the patch, but it did not help in the decoding. Please let me know if you need other information to help understand the problem. Thanks. ----- Emacs version: "GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2009-01-29 on T42" Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --cflags -I../../GnuWin32/include' 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: ENU value of $XMODIFIERS: nil locale-coding-system: chinese-big5 default-enable-multibyte-characters: t Major mode: Shell Minor modes in effect: auto-image-file-mode: t shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-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 ------------=_1235326803-22187-2 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 1809-done) by emacsbugs.donarmstrong.com; 22 Feb 2009 18:14:40 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.5 required=4.0 tests=HAS_BUG_NUMBER,PHONENUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1MIEbQj020957 for <1809-done@emacsbugs.donarmstrong.com>; Sun, 22 Feb 2009 10:14:38 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id 603A857E211; Sun, 22 Feb 2009 13:15:35 -0500 (EST) From: Chong Yidong To: Andreas Schwab Cc: Juri Linkov , mj , Juanma Barranquero , 1809-done@emacsbugs.donarmstrong.com Subject: Re: bug#1809: decode-coding-inserted-region corrupts files Date: Sun, 22 Feb 2009 13:15:35 -0500 Message-ID: <87eixqz6bc.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > 2009-02-22 Andreas Schwab > > * insdel.c (del_range_2): Don't modify gap contents when > called from decode_coding_object. (Bug#1809) Thanks for fixing this bug. ------------=_1235326803-22187-2--