From unknown Sun Jun 22 20:56:59 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#2416 <2416@debbugs.gnu.org> To: bug#2416 <2416@debbugs.gnu.org> Subject: Status: 23.0.60; decode-coding-region Reply-To: bug#2416 <2416@debbugs.gnu.org> Date: Mon, 23 Jun 2025 03:56:59 +0000 retitle 2416 23.0.60; decode-coding-region reassign 2416 emacs submitter 2416 mj severity 2416 normal thanks From mjchan.inbox@gmail.com Fri Feb 20 13:13:09 2009 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 From eliz@gnu.org Sat Feb 21 01:16:41 2009 Received: (at 2416) by emacsbugs.donarmstrong.com; 21 Feb 2009 09:16:41 +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.5 required=4.0 tests=GMAIL,HAS_BUG_NUMBER, RCVD_IN_NIX1 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mtaout6.012.net.il (mtaout6.012.net.il [84.95.2.16]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1L9Gbnk006377 for <2416@emacsbugs.donarmstrong.com>; Sat, 21 Feb 2009 01:16:38 -0800 Received: from conversion-daemon.i-mtaout6.012.net.il by i-mtaout6.012.net.il (HyperSendmail v2007.08) id <0KFE00700S93O500@i-mtaout6.012.net.il> for 2416@emacsbugs.donarmstrong.com; Sat, 21 Feb 2009 11:16:45 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.228.82.14]) by i-mtaout6.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KFE00K9GSFT6B80@i-mtaout6.012.net.il>; Sat, 21 Feb 2009 11:16:42 +0200 (IST) Date: Sat, 21 Feb 2009 11:16:11 +0200 From: Eli Zaretskii Subject: Re: bug#2416: 23.0.60; decode-coding-region In-reply-to: <499f1cdd.050cc00a.4267.ffffc0ce@mx.google.com> X-012-Sender: halo1@inter.net.il To: mj , 2416@debbugs.gnu.org Reply-to: Eli Zaretskii Message-id: References: <499f1cdd.050cc00a.4267.ffffc0ce@mx.google.com> > Date: Fri, 20 Feb 2009 13:13:01 -0800 (PST) > From: mj > Cc: > > 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. Could you please see if the problem still persists in the current CVS? Your Emacs seems to be about a month old (Jan 29), and a couple of related bugs were fixed in coding.c since then. From mj54590@gmail.com Sat Feb 21 05:20:17 2009 Received: (at 2416) by emacsbugs.donarmstrong.com; 21 Feb 2009 13:20:17 +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.0 required=4.0 tests=GMAIL,HAS_BUG_NUMBER,MULTALT autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1LDKCJE003318 for <2416@emacsbugs.donarmstrong.com>; Sat, 21 Feb 2009 05:20:13 -0800 Received: by yw-out-2324.google.com with SMTP id 5so520295ywb.31 for <2416@emacsbugs.donarmstrong.com>; Sat, 21 Feb 2009 05:20:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=CsFez09oek8N82paBd9mq65hhP3eAwvzFQhLAFdclQU=; b=j05ZPg+bQGeRYsm6tdsbSf7NPPiw5MvgC3MOieJU5CICuTO3olh0fWSo3LQ7WLQePs 89NX+peirwpXMzWXYbTudGfKw7oesg/zo0Vt5q6QRpGY81OtH/6wIw5w5WzZthPjjHiM Rp8XzFoYmB5w0s1thBsFKKF20qZiEk09MZEts= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=kMfWohsR4yD1idge1eDWmxtHoNiu/d7i0hjW6FjYbp4jVk5obpG2TBqFEp0ng4rqoz +jxfqRHLJW837LxG9X0fScStfb09ARRUNjp3QORXEf/GbCq89cJwP2NZo+PMo8cYm9Zl 8Htx7BM6TS/V+2z8kjj2/274X1H6fM0c5D6V0= MIME-Version: 1.0 Received: by 10.150.51.6 with SMTP id y6mr214754yby.249.1235222412242; Sat, 21 Feb 2009 05:20:12 -0800 (PST) In-Reply-To: References: <499f1cdd.050cc00a.4267.ffffc0ce@mx.google.com> Date: Sat, 21 Feb 2009 08:20:12 -0500 Message-ID: Subject: Re: bug#2416: 23.0.60; decode-coding-region From: MJ To: Eli Zaretskii Cc: 2416@debbugs.gnu.org Content-Type: multipart/alternative; boundary=000e0cd6ae7a19b0e304636da116 --000e0cd6ae7a19b0e304636da116 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Thanks for the reply. I just tried with the latest CVS version and the problem still persists: "GNU Emacs 23.0.90.1 (i386-mingw-nt5.1.2600) of 2009-02-21 on T42" On Sat, Feb 21, 2009 at 4:16 AM, Eli Zaretskii wrote: > > Date: Fri, 20 Feb 2009 13:13:01 -0800 (PST) > > From: mj > > Cc: > > > > 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. > > Could you please see if the problem still persists in the current CVS? > Your Emacs seems to be about a month old (Jan 29), and a couple of > related bugs were fixed in coding.c since then. > --000e0cd6ae7a19b0e304636da116 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks for the reply. I just tried with the latest CVS version and the prob= lem still persists:

"GNU Emacs 23.0.90.1 (i386-mingw-nt5.1.2600= ) of 2009-02-21 on T42"


--000e0cd6ae7a19b0e304636da116-- From cyd@stupidchicken.com Sat Feb 21 09:20:52 2009 Received: (at 2416) by emacsbugs.donarmstrong.com; 21 Feb 2009 17:20:52 +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.0 required=4.0 tests=none 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 n1LHKoTR032422 for <2416@emacsbugs.donarmstrong.com>; Sat, 21 Feb 2009 09:20:51 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id D84BC57E21A; Sat, 21 Feb 2009 12:21:46 -0500 (EST) From: Chong Yidong To: mj Cc: 2416@debbugs.gnu.org Subject: Re: 23.0.60; decode-coding-region Date: Sat, 21 Feb 2009 12:21:46 -0500 Message-ID: <87d4dbogd1.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Could you try to narrow down the bug, so that it can be reproduced? One way would be to copy out buffer contents before decoding into a separate buffer, and see if decode-coding-region misbehaves when applied manually to that bufer. From lekktu@gmail.com Sat Feb 21 18:47:11 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 22 Feb 2009 02:47:11 +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.5 required=4.0 tests=GMAIL,HAS_BUG_NUMBER, PHONENUMBER autolearn=unavailable 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 n1M2l8bb014185 for ; Sat, 21 Feb 2009 18:47:10 -0800 Received: from mail.gnu.org ([199.232.76.166]:47603 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Lb4Kv-00028B-CQ for emacs-pretest-bug@gnu.org; Sat, 21 Feb 2009 21:44:57 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Lb4N2-0003Oo-8t for emacs-pretest-bug@gnu.org; Sat, 21 Feb 2009 21:47:08 -0500 Received: from nf-out-0910.google.com ([64.233.182.188]:29580) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lb4N1-0003OK-So for emacs-pretest-bug@gnu.org; Sat, 21 Feb 2009 21:47:08 -0500 Received: by nf-out-0910.google.com with SMTP id d3so307338nfc.26 for ; Sat, 21 Feb 2009 18:47:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=3DAhhLvhyneB0gLpb6zkyOs7fwqa7XFFcR4vCztGN70=; b=dUp8XHUm29QLYp5Bh/76kL68J28ehaYWe7kxPGUujR+X5yPrydgt+CGqqwSfO03y7t yFlSqV4YVpUpjsjUwh/+NtuHutzoO3Zu+5WehQMLbAYSlA/bdl2aRmZc6ez3uSBb5OdX 5Wd15o5bA7zc9yZtuutttFzH7wYypTaBSFVxE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=VGVLT2lZDLqc0Rhy7E0bXTsJHBfsCBXqxqD05AGdzYcBhU8hQY93EzKxsV6cb86izL 8d3aDwfOe0v7Cl8Qdwhmf281nPahBB6yof399qWh0Gt/6SSieyFmJuiVDcrcCQ/qazzW m2QvG6+9+13s/dQ6mnUnJTZhmJjxxfiX9wRwI= MIME-Version: 1.0 Received: by 10.210.59.3 with SMTP id h3mr2108606eba.122.1235270823934; Sat, 21 Feb 2009 18:47:03 -0800 (PST) In-Reply-To: <499f1cdd.050cc00a.4267.ffffc0ce@mx.google.com> References: <499f1cdd.050cc00a.4267.ffffc0ce@mx.google.com> Date: Sun, 22 Feb 2009 03:47:03 +0100 Message-ID: Subject: Re: bug#2416: 23.0.60; decode-coding-region From: Juanma Barranquero To: mj , 2416@debbugs.gnu.org Cc: emacs-pretest-bug@gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-CrossAssassin-Score: 2 On Fri, Feb 20, 2009 at 22:13, mj wrote: > (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. Could it be related to bug#1809? (with-temp-buffer (insert (make-string 20 ?.)) (decode-coding-region 1 (point-max) 'raw-text) (buffer-string)) => "^@..................." Juanma From mj54590@gmail.com Sat Feb 21 21:07:49 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 22 Feb 2009 05:07:49 +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.5 required=4.0 tests=GMAIL,HAS_BUG_NUMBER,MULTALT, PHONENUMBER 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 n1M57cML017784 for ; Sat, 21 Feb 2009 21:07:39 -0800 Received: from mx10.gnu.org ([199.232.76.166]:54505) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Lb6Ws-0005fp-9A for emacs-pretest-bug@gnu.org; Sun, 22 Feb 2009 00:05:26 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Lb6Yx-0002Bl-NC for emacs-pretest-bug@gnu.org; Sun, 22 Feb 2009 00:07:37 -0500 Received: from yw-out-1718.google.com ([74.125.46.153]:13641) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lb6Yx-0002Bf-Ac; Sun, 22 Feb 2009 00:07:35 -0500 Received: by yw-out-1718.google.com with SMTP id 6so626776ywa.66 for ; Sat, 21 Feb 2009 21:07:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=akKEU2b0au6IJE8KyWunoWM2MaZJ4jdtfmpY+h1f8yo=; b=RmZecqOgh+0k7kI9VfQYBEk/0DMJAK/180sHLbKGZv3GuVlXMwGroj2tWd2kaTytNh 3cSVDnxLHsEAHRn3kiZmGPicGbgFHyUmPutDvoI99otWEjiHrJWeHmJk58nrxKOXp6ao N2YQ5+3nJIRSUAfwDh2vyfNiKIlz0QpNye7jc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=B96avbXpQHoFB1I+iXVzB2++QQxqAXK0JqFsAvQNWLZs64Enh+hZn7hzNI0DJdWp90 pZPhtCTddFV3L+6EBn2hP+2V35J52CFqAvh8qClfIN3ASFYPXcF8vrAgkowQIDdbrhmM xFmSkK5V4baU2SVlQ/vb0SzjmopbzSzuHhjdo= MIME-Version: 1.0 Received: by 10.150.195.21 with SMTP id s21mr2756679ybf.16.1235279253818; Sat, 21 Feb 2009 21:07:33 -0800 (PST) In-Reply-To: References: <499f1cdd.050cc00a.4267.ffffc0ce@mx.google.com> Date: Sun, 22 Feb 2009 00:07:33 -0500 Message-ID: Subject: Re: bug#2416: 23.0.60; decode-coding-region From: MJ To: Juanma Barranquero Cc: 2416@debbugs.gnu.org, emacs-pretest-bug@gnu.org, Chong Yidong , Eli Zaretskii Content-Type: multipart/alternative; boundary=000e0cd4d97e1f4d3e04637add47 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-CrossAssassin-Score: 2 --000e0cd4d97e1f4d3e04637add47 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Juanma, thank you for the lisp code that reproduces the same problem that I am having. If a space is inserted at the beginning of the buffer, then the result is correct (as stated in my bug report): (with-temp-buffer (insert " ") (insert (make-string 20 ?.)) (decode-coding-region 2 (point-max) 'us-ascii) (buffer-string)) " ...................." (I use 'us-ascii just to show the coding does not matter). Now, hopefully emacs developers will be able to understand and fix the problem. On Sat, Feb 21, 2009 at 9:47 PM, Juanma Barranquero wrote: > On Fri, Feb 20, 2009 at 22:13, mj wrote: > > > (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. > > Could it be related to bug#1809? > > (with-temp-buffer > (insert (make-string 20 ?.)) > (decode-coding-region 1 (point-max) 'raw-text) > (buffer-string)) > > => "^@..................." > > Juanma > --000e0cd4d97e1f4d3e04637add47 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Juanma, thank you for the lisp code that reproduces the same problem that I= am having.

If a space is inserted at the beginning of the buffer, = then the result is correct (as stated in my bug report):

(with-temp-= buffer
 (insert " ")
 (insert (make-string 20 ?.))
 = ;(decode-coding-region 2 (point-max) 'us-ascii)
 (buffer-string= ))
" ...................."

(I use 'us-ascii just to= show the coding does not matter).

Now, hopefully emacs developers will  be able to understand and fi= x the problem.


On Sat, Feb 21, 2009 = at 9:47 PM, Juanma Barranquero <lekktu@gmail.com> wrote:
On Fri, Feb 20, 2009 at 22:13, mj <mj54590@gmail.com> wrote:

> (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 anot= her instance
> that a string was decoded and the result is  ^@ prefixed.

Could it be related to bug#1809?

(with-temp-buffer
 (insert (make-string 20 ?.))
 (decode-coding-region 1 (point-max) 'raw-text)
 (buffer-string))

=3D> "^@..................."

   Juanma

--000e0cd4d97e1f4d3e04637add47-- From lekktu@gmail.com Sat Feb 21 21:14:03 2009 Received: (at 2416) by emacsbugs.donarmstrong.com; 22 Feb 2009 05:14:03 +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.5 required=4.0 tests=GMAIL,HAS_BUG_NUMBER, PHONENUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1M5Dx3w019020 for <2416@emacsbugs.donarmstrong.com>; Sat, 21 Feb 2009 21:14:01 -0800 Received: by ey-out-2122.google.com with SMTP id 25so254183eya.13 for <2416@emacsbugs.donarmstrong.com>; Sat, 21 Feb 2009 21:13:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=hFAM3i3WXMrcwXDS1FPVHM69VXe4lLI6LUcnihZhp14=; b=l8YSg9za/kF+9oxrPLn6IGcekeN8flu3wV07LYOi6iuZ6KeBBhGN+SKGXFhKbmRfBp 5EDJjDxsUFLujeG3H31b8+aWql/jtzhoOajd6MYJnyXBu1GGGBbk7gL4gMuOOsUSu9sO ZAF96daH/pEj9MBiTD9Tf9DApw6tAI3nOV0Jg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=VlZYDKvlD1XLEP003wK68uwVduAqJ9qB9nlTcZN+UtCjq6EYsCacXYcPi+64f8xZxx UypFL+2ORgl4hoKZ7/7kngxKSA1GzHoZeYuekahH5l3ggGF0GCbcMwXddcWw1KhJwmIw sBFsg3zSOgCrojnbmW/6d3ik4jI3ARCYuJl/o= MIME-Version: 1.0 Received: by 10.210.38.17 with SMTP id l17mr2196107ebl.156.1235279639201; Sat, 21 Feb 2009 21:13:59 -0800 (PST) In-Reply-To: References: <499f1cdd.050cc00a.4267.ffffc0ce@mx.google.com> Date: Sun, 22 Feb 2009 06:13:59 +0100 Message-ID: Subject: Re: bug#2416: 23.0.60; decode-coding-region From: Juanma Barranquero To: MJ Cc: 2416@debbugs.gnu.org, Chong Yidong , Eli Zaretskii Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Sun, Feb 22, 2009 at 06:07, MJ wrote: > If a space is inserted at the beginning of the buffer, then the result is > correct (as stated in my bug report): If you look at #1809, you'll see that the problem seems to be sensitive to string length. Assuming you're using ASCII, do you see it with strings of length != 20? Juanma From mj54590@gmail.com Sat Feb 21 21:23:35 2009 Received: (at 2416) by emacsbugs.donarmstrong.com; 22 Feb 2009 05:23:35 +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.5 required=4.0 tests=GMAIL,HAS_BUG_NUMBER,MULTALT, PHONENUMBER autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.29]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1M5NVpL021393 for <2416@emacsbugs.donarmstrong.com>; Sat, 21 Feb 2009 21:23:33 -0800 Received: by yx-out-2324.google.com with SMTP id 8so592335yxg.31 for <2416@emacsbugs.donarmstrong.com>; Sat, 21 Feb 2009 21:23:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=jmGLyxpDvrm4SN/iVwnae0v6DWTuZzTEb4U/1ydjlQc=; b=EZr3VrbtVSzO8qZDEUqYM6YkFiEKhRhv7qqnLQkcnhxL94uBCZRC42tPX0bhMQTRVJ 3zNyZQkt3YFUFM7PzDSSUOU4r2BImp2VoyYKqJy0U31OBq8PHB9VGIrUdraxcEkzkW8T 00a/UN3WBF0CPOg8Oflapbb045JmWvY4rspkI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=CagQQr/EiULAxPHzjWI+0ebOcqbtC14u+ZorBc6YaSUij3NobahHMnvCJQAmp4OmFO 6wdxNz14HJa3pLyKiaiOc+jXfdZxiGWEd3PQELYlhIwOjR3B1HvxafQkSC9BpZR4wBaJ N7Gu+jVrVkiPrwpTtuMoHMZCz36gf7+ikWaxQ= MIME-Version: 1.0 Received: by 10.151.78.15 with SMTP id f15mr3860533ybl.131.1235280211444; Sat, 21 Feb 2009 21:23:31 -0800 (PST) In-Reply-To: References: <499f1cdd.050cc00a.4267.ffffc0ce@mx.google.com> Date: Sun, 22 Feb 2009 00:23:31 -0500 Message-ID: Subject: Re: bug#2416: 23.0.60; decode-coding-region From: MJ To: Juanma Barranquero Cc: 2416@debbugs.gnu.org, Chong Yidong , Eli Zaretskii Content-Type: multipart/alternative; boundary=0015174bdd0833839904637b16b8 --0015174bdd0833839904637b16b8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Indeed, including newline, the buffer length is exactly 20 bytes in two cases where they are ascii. In another case, it's BIG5 Chinese (each BIG5 code is two bytes), and the total is also 20 bytes. Thanks for pointing it out. On Sun, Feb 22, 2009 at 12:13 AM, Juanma Barranquero wrote: > On Sun, Feb 22, 2009 at 06:07, MJ wrote: > > > If a space is inserted at the beginning of the buffer, then the result is > > correct (as stated in my bug report): > > If you look at #1809, you'll see that the problem seems to be > sensitive to string length. Assuming you're using ASCII, do you see it > with strings of length != 20? > > Juanma > --0015174bdd0833839904637b16b8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Indeed, including newline, the buffer length is exactly 20 bytes in two cas= es where they are ascii. In another case, it's BIG5 Chinese (each BIG5 = code is two bytes), and the total is also 20 bytes. Thanks for pointing it = out.

On Sun, Feb 22, 2009 at 12:13 AM, Juanma Bar= ranquero <lekktu@g= mail.com> wrote:
On Sun, Feb 22, 2009 at 06:07, MJ <mj54590@gmail.com> wrote:

> If a space is inserted at the beginning of the buffer, then the result= is
> correct (as stated in my bug report):

If you look at #1809, you'll see that the problem seems to be
sensitive to string length. Assuming you're using ASCII, do you see it<= br> with strings of length !=3D 20?

   Juanma

--0015174bdd0833839904637b16b8-- From lekktu@gmail.com Sat Feb 21 21:44:45 2009 Received: (at 2416) by emacsbugs.donarmstrong.com; 22 Feb 2009 05:44:45 +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 nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1M5iZ1e026265; Sat, 21 Feb 2009 21:44:37 -0800 Received: by nf-out-0910.google.com with SMTP id g16so238037nfd.31 for ; Sat, 21 Feb 2009 21:44:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=HDBduujd/9yLlDjtxPIYWQ3dKugNMH5T/lrWjc8hUAs=; b=htAG3eIzRgBlSfC9kU1yaOAIBV6Xea9tZ+gEl44vC+8WMXw7X4GVZig0HjvRzCDCDI QPOVhcov4hMPqXk4wyTvPuipFaCSfjaSTqXTM8pb1EQW435LGQHtl8KsNaaG5A7J0TrH emix9O5xhR31bT9fmBEU252l6AR/OEFboiWGg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=vBNFd3p0iuzQRSdV4g2scgdY9guNYA87LDsPR54eHDZHFHidF0Cy+C+saZdsHWeFGw DpkgHPLsRLFNRDpwY74ztspRxcBkOK0HvhYiqW431nc3U4u10rxNxqlhyWswI8ky0Sws DXmysuWHrPoJimpO3h8M8iuM6xLozgDGPN/o8= MIME-Version: 1.0 Received: by 10.210.38.5 with SMTP id l5mr2238628ebl.49.1235281475300; Sat, 21 Feb 2009 21:44:35 -0800 (PST) In-Reply-To: References: <499f1cdd.050cc00a.4267.ffffc0ce@mx.google.com> Date: Sun, 22 Feb 2009 06:44:35 +0100 Message-ID: Subject: Re: bug#2416: 23.0.60; decode-coding-region From: Juanma Barranquero To: MJ Cc: 2416@debbugs.gnu.org, Chong Yidong , Eli Zaretskii , control@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit merge 1809 2416 quit > Indeed, including newline, the buffer length is exactly 20 bytes in two > cases where they are ascii. In another case, it's BIG5 Chinese (each BIG5 > code is two bytes), and the total is also 20 bytes. Thanks for pointing it > out. OK, so this is #1809 then. I'm merging the bugs. Juanma From lekktu@gmail.com Sat Feb 21 22:07:50 2009 Received: (at 2416) by emacsbugs.donarmstrong.com; 22 Feb 2009 06:07:50 +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.5 required=4.0 tests=GMAIL,HAS_BUG_NUMBER, PHONENUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1M67gUk000540 for <2416@emacsbugs.donarmstrong.com>; Sat, 21 Feb 2009 22:07:43 -0800 Received: by ug-out-1314.google.com with SMTP id u2so174863uge.14 for <2416@emacsbugs.donarmstrong.com>; Sat, 21 Feb 2009 22:07:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=R8/pneh6ShDFS7/ufWoXxqwyLZx7x2g8hu0gP0v5BVk=; b=QzdhNzbvezh8okT2wmuFpRTKpoPqoSWa+Mztjg+sN5xOIZRjSPB3v8cEkgk7vVfqbv 86BfsGIP7BQE64HaBI04SZUgb/rN+1rIUGEqcH/Ebj8Xr5UgbTgYomr/HRuP5VUP/k+p 3bE4aiMH7ab86qw2T8c4tcur7coVAuc7zFOZk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=EpAFSQQvSr5EJBTmPlRoDn1NaqlYczB2k7S1n7zcAbDc4PmkiIKzYZDuWaLqykFbXa LrpI5OKGddWKE4H47WcjYWxJ0YJGJkSq7WfdQ/BiYMpbaS8pp09/lk0C/q2QIIKRvq8T nNNDgz57cAL2CqYdm77LlT09+dpxyytCrf43o= MIME-Version: 1.0 Received: by 10.210.61.11 with SMTP id j11mr2256878eba.26.1235282861626; Sat, 21 Feb 2009 22:07:41 -0800 (PST) In-Reply-To: References: <499f1cdd.050cc00a.4267.ffffc0ce@mx.google.com> Date: Sun, 22 Feb 2009 07:07:41 +0100 Message-ID: Subject: Re: bug#2416: 23.0.60; decode-coding-region From: Juanma Barranquero To: MJ Cc: 2416@debbugs.gnu.org, Chong Yidong , Eli Zaretskii Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Sun, Feb 22, 2009 at 06:13, Juanma Barranquero wrote: > If you look at #1809, you'll see that the problem seems to be > sensitive to string length. Assuming you're using ASCII, do you see it > with strings of length != 20? A clue: the bug is sensitive to the value of the BUF_GAP_SIZE set in `get-buffer-create', at buffer.c:364. If you change BUF_GAP_SIZE (b) = 20; to another size, so does the bug's triggering length. Juanma From schwab@suse.de Sun Feb 22 06:31:44 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 22 Feb 2009 14:31:44 +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.5 required=4.0 tests=GMAIL,HAS_BUG_NUMBER, PHONENUMBER autolearn=ham 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 n1MEVfqP030204 for ; Sun, 22 Feb 2009 06:31:43 -0800 Received: from mail.gnu.org ([199.232.76.166]:40699 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LbFKi-0002Bf-H5 for emacs-pretest-bug@gnu.org; Sun, 22 Feb 2009 09:29:28 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LbFMo-0008DB-ET for emacs-pretest-bug@gnu.org; Sun, 22 Feb 2009 09:31:39 -0500 Received: from mx2.suse.de ([195.135.220.15]:48041) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LbFMn-0008Ca-WE for emacs-pretest-bug@gnu.org; Sun, 22 Feb 2009 09:31:38 -0500 Received: from Relay2.suse.de (relay-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 4F036466AA; Sun, 22 Feb 2009 15:31:34 +0100 (CET) From: Andreas Schwab To: Juanma Barranquero Cc: 2416@debbugs.gnu.org, mj , emacs-pretest-bug@gnu.org Subject: Re: bug#2416: 23.0.60; decode-coding-region References: <499f1cdd.050cc00a.4267.ffffc0ce@mx.google.com> X-Yow: Are BOTH T.V.S on?? Date: Sun, 22 Feb 2009 15:31:33 +0100 In-Reply-To: (Juanma Barranquero's message of "Sun, 22 Feb 2009 03:47:03 +0100") Message-ID: User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 Juanma Barranquero writes: > Could it be related to bug#1809? > > (with-temp-buffer > (insert (make-string 20 ?.)) > (decode-coding-region 1 (point-max) 'raw-text) > (buffer-string)) > > =3D> "^@..................." I've installed a fix. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different." From mj54590@gmail.com Sun Feb 22 18:23:12 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 23 Feb 2009 02:23:12 +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.5 required=4.0 tests=GMAIL,HAS_BUG_NUMBER,MULTALT, PHONENUMBER 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 n1N2N9tW014282 for ; Sun, 22 Feb 2009 18:23:11 -0800 Received: from mail.gnu.org ([199.232.76.166]:50520 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LbQRE-0006jf-HA for emacs-pretest-bug@gnu.org; Sun, 22 Feb 2009 21:20:56 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LbQTK-0006Nh-Pv for emacs-pretest-bug@gnu.org; Sun, 22 Feb 2009 21:23:08 -0500 Received: from yx-out-1718.google.com ([74.125.44.153]:27442) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LbQTK-0006Nb-Dt for emacs-pretest-bug@gnu.org; Sun, 22 Feb 2009 21:23:06 -0500 Received: by yx-out-1718.google.com with SMTP id 34so721286yxf.66 for ; Sun, 22 Feb 2009 18:23:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=ZaAgMX3hntJgGoULcS3YVWDqP/7msoiLKgb0UvoaF3I=; b=F28vlHd8NTNUnrXQh0KLRQ9h31GFQFJ+9FWBbcwWML5lExwj6101YhBfVPnp2AnIP3 Lpczq3Q7XSO64AXOIi2ykm7xoEkpc+AmPcuwQc0NIHBkomGJ/HqFRa/Gdjbi5/7Ciepy +dEd/sKteny6kg/9UTkQhEbH+7EJbG/WPKjfU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=dzzBceZJ9vbwpi8R+TO/OV1K/g9+pa+lIBhWgF0uiJ5lX5boonSCJiK1ddYo2NKr/T SqgRPDFvhD4VAeHN7kVfZe4ZiOo2WH/lT5rSQFyXEQNiMehATZv0K3pisSESOagmzWN5 Y1+SXwyQc0PmZXObhAul4J+LjvbFrpJykyLsM= MIME-Version: 1.0 Received: by 10.150.227.9 with SMTP id z9mr4800050ybg.237.1235355785732; Sun, 22 Feb 2009 18:23:05 -0800 (PST) In-Reply-To: References: <499f1cdd.050cc00a.4267.ffffc0ce@mx.google.com> Date: Sun, 22 Feb 2009 21:23:05 -0500 Message-ID: Subject: Re: bug#2416: 23.0.60; decode-coding-region From: MJ To: Andreas Schwab Cc: Juanma Barranquero , 2416@debbugs.gnu.org, emacs-pretest-bug@gnu.org Content-Type: multipart/alternative; boundary=000e0cd48494c7a1a104638cae43 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-CrossAssassin-Score: 2 --000e0cd48494c7a1a104638cae43 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Andreas, thank you for the quick fix, which indeed solves the problem I was having. -- mj On Sun, Feb 22, 2009 at 9:31 AM, Andreas Schwab wrote: > Juanma Barranquero writes: > > > Could it be related to bug#1809? > > > > (with-temp-buffer > > (insert (make-string 20 ?.)) > > (decode-coding-region 1 (point-max) 'raw-text) > > (buffer-string)) > > > > =3D> "^@..................." > > I've installed a fix. > > Andreas. > > -- > Andreas Schwab, SuSE Labs, schwab@suse.de > SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany > PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 > "And now for something completely different." > --000e0cd48494c7a1a104638cae43 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Andreas, thank you for the quick fix, which indeed solves the problem I was= having. -- mj

On Sun, Feb 22, 2009 at 9:= 31 AM, Andreas Schwab <schwab@suse.de> wrote:
Juanma Barranquero <lekktu@gmai= l.com> writes:

> Could it be related to bug#1809?
>
> (with-temp-buffer
>   (insert (make-string 20 ?.))
>   (decode-coding-region 1 (point-max) 'raw-text)
>   (buffer-string))
>
> =3D> "^@..................."

I've installed a fix.

Andreas.

--
Andreas Schwab, SuSE Labs, schwab@suse.de=
SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany
PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 = 4ED5
"And now for something completely different."

--000e0cd48494c7a1a104638cae43-- From unknown Sun Jun 22 20:56:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Mon, 23 Mar 2009 14:24:10 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator