From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: mj Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#2416: 23.0.60; decode-coding-region Date: Fri, 20 Feb 2009 13:13:01 -0800 (PST) Message-ID: <499f1cdd.050cc00a.4267.ffffc0ce@mx.google.com> Reply-To: mj , 2416@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1235198871 27332 80.91.229.12 (21 Feb 2009 06:47:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Feb 2009 06:47:51 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 21 07:49:06 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 1Lalfe-0001Ma-2l for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Feb 2009 07:49:06 +0100 Original-Received: from localhost ([127.0.0.1]:55296 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LaleJ-0008Ck-PV for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Feb 2009 01:47:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LacqT-0007FL-V1 for bug-gnu-emacs@gnu.org; Fri, 20 Feb 2009 16:23:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LacqS-0007ES-8K for bug-gnu-emacs@gnu.org; Fri, 20 Feb 2009 16:23:40 -0500 Original-Received: from [199.232.76.173] (port=42382 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LacqR-0007E6-Ml for bug-gnu-emacs@gnu.org; Fri, 20 Feb 2009 16:23:39 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:47229) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LacqR-00016i-2B for bug-gnu-emacs@gnu.org; Fri, 20 Feb 2009 16: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 n1KLNaju019269; Fri, 20 Feb 2009 13:23:37 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1KLK4Lc018135; Fri, 20 Feb 2009 13:20:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: mj Original-Sender: MJ Chan Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 20 Feb 2009 21:20:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 2416 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123516438916788 (code B ref -1); Fri, 20 Feb 2009 21:20:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 20 Feb 2009 21:13:09 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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 Original-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 Original-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 Original-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 Original-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= Original-Received: by 10.224.20.10 with SMTP id d10mr2243119qab.35.1235164382203; Fri, 20 Feb 2009 13:13:02 -0800 (PST) Original-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) Original-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 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) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 20 Feb 2009 16:23:40 -0500 X-Mailman-Approved-At: Sat, 21 Feb 2009 01:45:16 -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:25533 gmane.emacs.pretest.bugs:23957 Archived-At: 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