From rms@gnu.org Mon Sep 29 10:15:33 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.7 required=4.0 tests=AWL,BAYES_00,FOURLA, FVGT_m_MULTI_ODD,GMAIL,MURPHY_WRONG_WORD1,MURPHY_WRONG_WORD2, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 29 Sep 2008 17:15:33 +0000 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 m8THFSZP018598 for ; Mon, 29 Sep 2008 10:15:30 -0700 Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KkMJA-00039z-Fq; Mon, 29 Sep 2008 13:13:16 -0400 Content-Type: text/plain; charset=ISO-8859-15 From: "Richard M. Stallman" To: emacs-pretest-bug@gnu.org Subject: 23.0.60; rmail decoding bug Reply-to: rms@gnu.org Message-Id: Date: Mon, 29 Sep 2008 13:13:16 -0400 Rmail decodes this message (and many others like it) incorrectly. Each pair of quoted-printable characters is supposed to convert to one character in the Emacs buffer, but instead it shows up as two. From dorascilipoti@alice.it Sun Sep 28 14:33:13 2008 Return-path: Envelope-to: rms@gnu.org Delivery-date: Sun, 28 Sep 2008 14:33:13 -0400 Received: from mx10.gnu.org ([199.232.76.166]:39989) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Kk14z-0002qJ-3Q for rms@gnu.org; Sun, 28 Sep 2008 14:33:13 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Kk171-0005Bt-Ma for rms@gnu.org; Sun, 28 Sep 2008 14:35:22 -0400 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_00, DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST autolearn=no version=3.1.0 Received: from smtp-out28.alice.it ([85.33.2.28]:4844) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kk171-0005B3-6H for rms@gnu.org; Sun, 28 Sep 2008 14:35:19 -0400 Received: from FBCMMO02.fbc.local ([192.168.68.196]) by smtp-out28.alice.it with Microsoft SMTPSVC(6.0.3790.1830); Sun, 28 Sep 2008 20:35:17 +0200 Received: from FBCMCL01B03.fbc.local ([192.168.69.84]) by FBCMMO02.fbc.local with Microsoft SMTPSVC(6.0.3790.1830); Sun, 28 Sep 2008 20:35:17 +0200 Received: from [192.168.1.101] ([79.16.197.32]) by FBCMCL01B03.fbc.local with Microsoft SMTPSVC(6.0.3790.1830); Sun, 28 Sep 2008 20:35:14 +0200 Subject: Re: Hamaca From: Dora Scilipoti Reply-To: dorascilipoti@alice.it To: rms@gnu.org Cc: dorascilipoti@gmail.com In-Reply-To: References: Content-Type: text/plain; charset=utf-8 Date: Sun, 28 Sep 2008 20:37:59 +0200 Message-Id: <1222627079.4471.16.camel@Osiris> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 Content-Transfer-Encoding: quoted-printable X-OriginalArrivalTime: 28 Sep 2008 18:35:15.0239 (UTC) FILETIME=[F3002B70:01C92198] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ > Una vez entrada como root, puedes hacer `su dora' para cambiar a la > cuenta `dora'. Claro, pero el problema es que no puedo lanzar ning=C3=BAn programa desde m= i cuenta de usuario:=20 Xlib: connection to ":0.0" refused by server Xlib: No protocol specified He encontrado una soluci=C3=B3n parcial y provisoria copiando el directorio /home/dora/.evolution en /root/.evolution, de esta manera puedo ver mis correos anteriores. In GNU Emacs 23.0.60.3 (mipsel-unknown-linux-gnu, GTK+ Version 2.12.11) of 2008-09-25 on lemote-menglan configured using `configure 'CFLAGS=-O0 -g -Wno-pointer-sign' 'mipsel-unknown-linux-gnu' 'build_alias=mipsel-unknown-linux-gnu' 'host_alias=mipsel-unknown-linux-gnu' 'target_alias=mipsel-unknown-linux-gnu'' 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: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Mail Minor modes in effect: shell-dirtrack-mode: t gpm-mouse-mode: t tooltip-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 abbrev-mode: t Recent input: 1 . RET C-c C-c C-d x r C-x o C-u C-n C-u C-n C-n C-@ C-u C-n C-n C-n C-n C-n ESC , RET P o k DEL DEL DEL P e DEL l e C-a C-k P l DEL O k , SPC p l e a s e SPC d SPC s o . C-a C-d ESC f ESC f ESC f o C-c C-c C-u C-p C-u C-p C-@ C-u C-n ESC w C-x C-f r e s e / DEL DEL u DEL DEL u s e / i t - i s TAB RET C-v C-v C-u C-u C-n C-u C-n C-p C-u C-y RET C-d C-d C-d C-d C-d C-d C-n C-u C-d C-d C-n C-u C-d C-d C-d C-p C-d C-n C-n C-u C-d C-d C-d ESC q C-x C-s C-p C-p C-p C-p C-@ C-u C-n C-n ESC w C-x C-f n e w - m a TAB RET ESC > C-u C-u C-p C-u C-p C-p C-u C-p C-p C-y C-x C-s C-x b R TAB RET C-d x C-d x SPC ESC v SPC o f l a s h TAB RET C-d x C-d C-d C-d C-d C-d x C-d C-d x C-x C-s p C-d C-d x C-d C-d x o d o r a TAB RET C-x C-f n o ESC b i C-e o u t DEL DEL DEL u / DEL t / r m s 0 6 3 DEL TAB 2 RET C-s R e : SPC h a DEL DEL H a m a C-s C-a C-u C-u C-p C-u C-p C-u C-p C-u C-p C-u C-p C-@ C-v C-u C-u C-n C-u C-n C-n ESC w C-x 4 m ESC x r e p o r t SPC e TAB RET Recent messages: Expunging deleted messages...done Saving file /home/rms/RMAIL... Wrote /home/rms/RMAIL Expunging deleted messages...done Expunging deleted messages...done Added to /home/rms/xmail/dora.xmail Making completion list... Mark saved where search started Mark set Saved text from "From dorascilipoti@alice.it Sun Sep 28 " From eliz@gnu.org Mon Sep 29 12:03:23 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.9 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED,RCVD_IN_NIX1 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 29 Sep 2008 19:03:24 +0000 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 m8TJ3K5i011912 for ; Mon, 29 Sep 2008 12:03:21 -0700 Received: from mail.gnu.org ([199.232.76.166]:34462 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KkNzY-0005Oq-Db for emacs-pretest-bug@gnu.org; Mon, 29 Sep 2008 15:01:08 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KkO1f-0000n1-2U for emacs-pretest-bug@gnu.org; Mon, 29 Sep 2008 15:03:19 -0400 Received: from mtaout3.012.net.il ([84.95.2.7]:23139) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KkO1e-0000mn-Oe; Mon, 29 Sep 2008 15:03:18 -0400 Received: from HOME-C4E4A596F7 ([77.127.170.116]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K7Z00LMU0YY1MI2@i_mtaout3.012.net.il>; Mon, 29 Sep 2008 22:04:24 +0300 (IDT) Date: Mon, 29 Sep 2008 22:03:06 +0300 From: Eli Zaretskii Subject: Re: bug#1051: 23.0.60; rmail decoding bug In-reply-to: X-012-Sender: halo1@inter.net.il To: rms@gnu.org, 1051@debbugs.gnu.org Cc: emacs-pretest-bug@gnu.org, bug-gnu-emacs@gnu.org Reply-to: Eli Zaretskii Message-id: References: X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 > From: "Richard M. Stallman" > Date: Mon, 29 Sep 2008 13:13:16 -0400 > Cc: > > Rmail decodes this message (and many others like it) > incorrectly. Each pair of quoted-printable characters is supposed > to convert to one character in the Emacs buffer, but instead > it shows up as two. I cannot reproduce this bug, neither in Emacs 23.0.60 built from today's morning CVS trunk, nor in Emacs 22.3. I see a single character for each of these pairs. Do you see the same problem in "emacs -Q"? From rms@gnu.org Mon Sep 29 21:57:26 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.4 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 30 Sep 2008 04:57:26 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8U4vNiH030804 for ; Mon, 29 Sep 2008 21:57:24 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KkXIZ-0004AG-0z for bug-gnu-emacs@gnu.org; Tue, 30 Sep 2008 00:57:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KkXIX-00048h-V5 for bug-gnu-emacs@gnu.org; Tue, 30 Sep 2008 00:57:22 -0400 Received: from [199.232.76.173] (port=44347 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KkXIX-00048Z-PY for bug-gnu-emacs@gnu.org; Tue, 30 Sep 2008 00:57:21 -0400 Received: from fencepost.gnu.org ([140.186.70.10]:40067) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KkXIX-0004x6-Iq for bug-gnu-emacs@gnu.org; Tue, 30 Sep 2008 00:57:21 -0400 Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KkXGO-0002Eg-VA; Tue, 30 Sep 2008 00:55:08 -0400 Content-Type: text/plain; charset=ISO-8859-15 From: "Richard M. Stallman" To: Eli Zaretskii CC: 1051@debbugs.gnu.org, emacs-pretest-bug@gnu.org, bug-gnu-emacs@gnu.org In-reply-to: (message from Eli Zaretskii on Mon, 29 Sep 2008 22:03:06 +0300) Subject: Re: bug#1051: 23.0.60; rmail decoding bug Reply-to: rms@gnu.org References: Message-Id: Date: Tue, 30 Sep 2008 00:55:08 -0400 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) I cannot reproduce this bug, neither in Emacs 23.0.60 built from today's morning CVS trunk, nor in Emacs 22.3. I see a single character for each of these pairs. Do you see the same problem in "emacs -Q"? I've discovered that the problem does not happen when I visit that message directly with C-u M-x rmail RET FILENAME RET. It does happen when I use C-u g FILENAME to get that message as new mail into my RMAIL file. Both cases are the same with and without -Q. This unfortunately leaves me with no test case I can send. From eliz@gnu.org Tue Sep 30 00:33:16 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.0 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED,RCVD_IN_NIX1 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 30 Sep 2008 07:33:16 +0000 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 m8U7XDXf004725 for ; Tue, 30 Sep 2008 00:33:14 -0700 Received: from mail.gnu.org ([199.232.76.166]:35882 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KkZhE-0002mn-Dc for emacs-pretest-bug@gnu.org; Tue, 30 Sep 2008 03:31:00 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KkZjL-00022x-8E for emacs-pretest-bug@gnu.org; Tue, 30 Sep 2008 03:33:12 -0400 Received: from mx20.gnu.org ([199.232.41.8]:56504) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KkZjK-00022q-M5; Tue, 30 Sep 2008 03:33:10 -0400 Received: from mtaout6.012.net.il ([84.95.2.16]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KkZjJ-0005Yz-GU; Tue, 30 Sep 2008 03:33:09 -0400 Received: from HOME-C4E4A596F7 ([77.127.170.116]) by i-mtaout6.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0K7Z00KJVZNBX470@i-mtaout6.012.net.il>; Tue, 30 Sep 2008 10:33:12 +0300 (IDT) Date: Tue, 30 Sep 2008 10:32:08 +0300 From: Eli Zaretskii Subject: Re: bug#1051: 23.0.60; rmail decoding bug In-reply-to: X-012-Sender: halo1@inter.net.il To: rms@gnu.org Cc: 1051@debbugs.gnu.org, emacs-pretest-bug@gnu.org, bug-gnu-emacs@gnu.org Reply-to: Eli Zaretskii Message-id: References: X-detected-kernel: by mx20.gnu.org: Solaris 10 (1203?) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. > From: "Richard M. Stallman" > CC: 1051@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org, > bug-gnu-emacs@gnu.org > Date: Tue, 30 Sep 2008 00:55:08 -0400 > > I've discovered that the problem does not happen when I visit that > message directly with C-u M-x rmail RET FILENAME RET. > > It does happen when I use C-u g FILENAME to get that message > as new mail into my RMAIL file. > > Both cases are the same with and without -Q. > > This unfortunately leaves me with no test case I can send. I can reproduce this by reading the test case you sent twice: once with "C-u M-x rmail", then with "C-u g". The second time I get the message displayed incorrectly. I will debug this and see what I find. From eliz@gnu.org Tue Sep 30 01:41:21 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.8 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 30 Sep 2008 08:41:21 +0000 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 m8U8fIrH021870 for ; Tue, 30 Sep 2008 01:41:19 -0700 Received: from mail.gnu.org ([199.232.76.166]:41589 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Kkal7-0002YY-GZ for emacs-pretest-bug@gnu.org; Tue, 30 Sep 2008 04:39:05 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KkanE-0005D9-PK for emacs-pretest-bug@gnu.org; Tue, 30 Sep 2008 04:41:18 -0400 Received: from mtaout7.012.net.il ([84.95.2.19]:11956) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KkanE-0005Cw-D5; Tue, 30 Sep 2008 04:41:16 -0400 Received: from HOME-C4E4A596F7 ([77.127.170.116]) by i-mtaout7.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0K800030J2SNC020@i-mtaout7.012.net.il>; Tue, 30 Sep 2008 11:41:12 +0300 (IDT) Date: Tue, 30 Sep 2008 11:40:08 +0300 From: Eli Zaretskii Subject: Re: bug#1051: 23.0.60; rmail decoding bug In-reply-to: X-012-Sender: halo1@inter.net.il To: 1051@debbugs.gnu.org Cc: rms@gnu.org, handa@m17n.org, emacs-pretest-bug@gnu.org, bug-gnu-emacs@gnu.org Reply-to: Eli Zaretskii Message-id: References: X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (1203?) > Date: Tue, 30 Sep 2008 10:32:08 +0300 > From: Eli Zaretskii > Cc: emacs-pretest-bug@gnu.org, bug-gnu-emacs@gnu.org, > 1051@emacsbugs.donarmstrong.com > > I can reproduce this by reading the test case you sent twice: once > with "C-u M-x rmail", then with "C-u g". The second time I get the > message displayed incorrectly. > > I will debug this and see what I find. The problem is within mail-unquote-printable-region: it relies on insert-char to insert a unibyte character, even if the target buffer is a multibyte buffer. In Emacs 22.x this works, but not in Emacs 23. Perhaps Handa-san can suggest what is the best way of inserting unibyte characters into a multibyte buffer in Emacs 23. Obviously, insert-file-contents does that when coding-system-for-read is bound to no-conversion. From handa@m17n.org Tue Sep 30 03:59:32 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.9 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 30 Sep 2008 10:59:33 +0000 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 m8UAxTkp022574 for ; Tue, 30 Sep 2008 03:59:31 -0700 Received: from mx10.gnu.org ([199.232.76.166]:54376) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Kkcuq-0000bX-KE for emacs-pretest-bug@gnu.org; Tue, 30 Sep 2008 06:57:16 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Kkcwy-0002zu-SA for emacs-pretest-bug@gnu.org; Tue, 30 Sep 2008 06:59:29 -0400 Received: from mx1.aist.go.jp ([150.29.246.133]:36798) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kkcwq-0002vi-Pm; Tue, 30 Sep 2008 06:59:21 -0400 Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id m8UAx8aE002786; Tue, 30 Sep 2008 19:59:09 +0900 (JST) env-from (handa@m17n.org) Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id m8UAx8Ta020956; Tue, 30 Sep 2008 19:59:08 +0900 (JST) env-from (handa@m17n.org) Received: by smtp2.aist.go.jp with ESMTP id m8UAx8df017340; Tue, 30 Sep 2008 19:59:08 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1Kkcwe-00065o-8B; Tue, 30 Sep 2008 19:59:08 +0900 From: Kenichi Handa To: Eli Zaretskii CC: 1051@debbugs.gnu.org, rms@gnu.org, emacs-pretest-bug@gnu.org, bug-gnu-emacs@gnu.org In-reply-to: (message from Eli Zaretskii on Tue, 30 Sep 2008 11:40:08 +0300) Subject: Re: bug#1051: 23.0.60; rmail decoding bug References: User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Message-Id: Date: Tue, 30 Sep 2008 19:59:08 +0900 X-detected-operating-system: by monty-python.gnu.org: Solaris 9 In article , Eli Zaretskii writes: > The problem is within mail-unquote-printable-region: it relies on > insert-char to insert a unibyte character, even if the target buffer > is a multibyte buffer. In Emacs 22.x this works, but not in Emacs 23. > Perhaps Handa-san can suggest what is the best way of inserting > unibyte characters into a multibyte buffer in Emacs 23. Obviously, > insert-file-contents does that when coding-system-for-read is bound to > no-conversion. The Lisp API for that is insert-byte. By the way, we still don't have a proper API for reading an eight-bit character as byte. What we can do now for that is something like these: (multibyte-char-to-unibyte (char-after POS)) or (encode-char (char-after POS) 'eight-bit) It may be good to provide byte-after, following-byte, and preceding-byte (all signal an error if the character is not an ASCII nor eight-bit character). What do you think? --- Kenichi Handa handa@ni.aist.go.jp From eliz@gnu.org Tue Sep 30 05:00:37 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.1 required=4.0 tests=AWL,BAYES_00,FVGT_m_MULTI_ODD, HAS_BUG_NUMBER,MURPHY_DRUGS_REL8,RCVD_IN_NIX1 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1051) by emacsbugs.donarmstrong.com; 30 Sep 2008 12:00:37 +0000 Received: from mtaout1.012.net.il (mtaout1.012.net.il [84.95.2.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8UC0XdM005959 for <1051@emacsbugs.donarmstrong.com>; Tue, 30 Sep 2008 05:00:35 -0700 Received: from HOME-C4E4A596F7 ([77.127.170.116]) by i-mtaout1.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0K80005XLC2MUXD0@i-mtaout1.012.net.il> for 1051@emacsbugs.donarmstrong.com; Tue, 30 Sep 2008 15:01:35 +0300 (IDT) Date: Tue, 30 Sep 2008 15:00:31 +0300 From: Eli Zaretskii Subject: Re: bug#1051: 23.0.60; rmail decoding bug In-reply-to: X-012-Sender: halo1@inter.net.il To: Kenichi Handa Cc: 1051@debbugs.gnu.org, rms@gnu.org, emacs-pretest-bug@gnu.org, bug-gnu-emacs@gnu.org Reply-to: Eli Zaretskii Message-id: References: > From: Kenichi Handa > CC: 1051@emacsbugs.donarmstrong.com, rms@gnu.org, emacs-pretest-bug@gnu.org, > bug-gnu-emacs@gnu.org > Date: Tue, 30 Sep 2008 19:59:08 +0900 > > In article , Eli Zaretskii writes: > > > The problem is within mail-unquote-printable-region: it relies on > > insert-char to insert a unibyte character, even if the target buffer > > is a multibyte buffer. In Emacs 22.x this works, but not in Emacs 23. > > > Perhaps Handa-san can suggest what is the best way of inserting > > unibyte characters into a multibyte buffer in Emacs 23. Obviously, > > insert-file-contents does that when coding-system-for-read is bound to > > no-conversion. > > The Lisp API for that is insert-byte. Thanks, this indeed fixes the problem. Richard, please see if the patch below fixes the problem for you as well. > It may be good to provide byte-after, following-byte, and > preceding-byte (all signal an error if the character is not > an ASCII nor eight-bit character). What do you think? I agree that it would be nice to have such a feature, but perhaps a single API (get-byte POS) would be enough? This could default to point if POS is nil or omitted, and could even read from a string if POS is a string. 2008-09-30 Eli Zaretskii * mail/mail-utils.el (mail-unquote-printable-region): Use insert-byte instead of insert-char, when the UNIBYTE arg is non-nil. Index: lisp/mail/mail-utils.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/mail/mail-utils.el,v retrieving revision 1.65 retrieving revision 1.66 diff -c -r1.65 -r1.66 *** lisp/mail/mail-utils.el 6 May 2008 07:22:25 -0000 1.65 --- lisp/mail/mail-utils.el 30 Sep 2008 11:53:21 -0000 1.66 *************** *** 141,148 **** (if unibyte (progn (replace-match "") ! ;; insert-char will insert this as unibyte, ! (insert-char char 1)) (replace-match (make-string 1 char) t t)))) (noerror (setq failed t)) --- 141,149 ---- (if unibyte (progn (replace-match "") ! ;; insert-byte will insert this as a ! ;; corresponding eight-bit character. ! (insert-byte char 1)) (replace-match (make-string 1 char) t t)))) (noerror (setq failed t)) From rms@gnu.org Tue Sep 30 16:32:24 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-9.9 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 30 Sep 2008 23:32:24 +0000 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 m8UNWFJn000304; Tue, 30 Sep 2008 16:32:17 -0700 Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KkofI-0007LS-QV; Tue, 30 Sep 2008 19:30:00 -0400 Content-Type: text/plain; charset=ISO-8859-15 From: "Richard M. Stallman" To: Eli Zaretskii , 1051@debbugs.gnu.org CC: handa@m17n.org, emacs-pretest-bug@gnu.org In-reply-to: (message from Eli Zaretskii on Tue, 30 Sep 2008 15:00:31 +0300) Subject: Re: bug#1051: 23.0.60; rmail decoding bug Reply-to: rms@gnu.org References: Message-Id: Date: Tue, 30 Sep 2008 19:30:00 -0400 Richard, please see if the patch below fixes the problem for you as well. Yes, it's fixed now. From handa@m17n.org Tue Sep 30 17:29:57 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.5 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, IMPRONONCABLE_1,MURPHY_WRONG_WORD2,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 1 Oct 2008 00:29:57 +0000 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 m910TsQC014194 for ; Tue, 30 Sep 2008 17:29:55 -0700 Received: from mx10.gnu.org ([199.232.76.166]:53274) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KkpZ6-0000nw-Sf for emacs-pretest-bug@gnu.org; Tue, 30 Sep 2008 20:27:40 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KkpbF-0007FC-Bl for emacs-pretest-bug@gnu.org; Tue, 30 Sep 2008 20:29:53 -0400 Received: from mx1.aist.go.jp ([150.29.246.133]:35021) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KkpbB-0007EI-Nd; Tue, 30 Sep 2008 20:29:50 -0400 Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id m910TfPh004976; Wed, 1 Oct 2008 09:29:41 +0900 (JST) env-from (handa@m17n.org) Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id m910Tf5t008965; Wed, 1 Oct 2008 09:29:41 +0900 (JST) env-from (handa@m17n.org) Received: by smtp2.aist.go.jp with ESMTP id m910TfQ9020574; Wed, 1 Oct 2008 09:29:41 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1Kkpb3-0005oB-0p; Wed, 01 Oct 2008 09:29:41 +0900 From: Kenichi Handa To: Eli Zaretskii CC: 1051@debbugs.gnu.org, rms@gnu.org, emacs-pretest-bug@gnu.org, bug-gnu-emacs@gnu.org In-reply-to: (message from Eli Zaretskii on Tue, 30 Sep 2008 15:00:31 +0300) Subject: Re: bug#1051: 23.0.60; rmail decoding bug References: User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Message-Id: Date: Wed, 01 Oct 2008 09:29:41 +0900 X-detected-operating-system: by monty-python.gnu.org: Solaris 9 X-CrossAssassin-Score: 2 In article , Eli Zaretskii writes: > > It may be good to provide byte-after, following-byte, and > > preceding-byte (all signal an error if the character is not > > an ASCII nor eight-bit character). What do you think? > I agree that it would be nice to have such a feature, but perhaps a > single API > (get-byte POS) > would be enough? This could default to point if POS is nil or > omitted, and could even read from a string if POS is a string. Ah! How about something like this? (defun get-byte (pos &optional string) "Return a byte at position POS of the current buffer.. If POS is nil, it defaults to point. If the second optional arg STRING is non-nil, return a byte in STRING at index POS. An error is signaled if the character at POS is not ASCII nor eight-bit character." ...) --- Kenichi Handa handa@ni.aist.go.jp From lekktu@gmail.com Sat Jan 24 05:04:01 2009 Received: (at control) by emacsbugs.donarmstrong.com; 24 Jan 2009 13:04:01 +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=2.3 required=4.0 tests=MISSING_SUBJECT,NOSUBJECT, VALID_BTS_CONTROL autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-ew0-f10.google.com (mail-ew0-f10.google.com [209.85.219.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0OD3wki018406 for ; Sat, 24 Jan 2009 05:03:59 -0800 Received: by ewy3 with SMTP id 3so5795908ewy.1 for ; Sat, 24 Jan 2009 05:03:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=CeeiEKcbFxmyO9WkWytoNkUy4vayQNZr5BBVIK86kIM=; b=JPmjhPfVMxw6t0npaSIw73VvdwdVGMejycvrnaDNGAdzgOji+rIYU9frjkR40zSFdy mqFaqyFGghJbbcIB5cENiFtFCX60Q3ZarwzjwGZxUebhDQps93H6FKzjo0lAbVrj2nic 63AfqIG2cchsMsfMkoDowPfCmFOTgw8hsHXL4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=ZK/s1LlEYCOcv9ytj0+TTXogTqdcQntcb59DDX699ecqDWqEZTSXGHOhTGnvT9y+8l oiUtTcY5sGz56MTGOnwjeOvA3gUEgImIjCCii7FVe28+UrkHdmezdn70J1iUlmrEqWKE aIAsJTYV/oN2ZQWXVwShJYrMPy9CkuDL1GETY= MIME-Version: 1.0 Received: by 10.210.66.13 with SMTP id o13mr9819670eba.124.1232802232596; Sat, 24 Jan 2009 05:03:52 -0800 (PST) Date: Sat, 24 Jan 2009 14:03:52 +0100 Message-ID: Subject: From: Juanma Barranquero To: control@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit reassign 512 emacs,rmail reassign 1051 emacs,rmail reassign 2000 emacs,rmail reassign 2015 emacs,rmail reassign 2016 emacs,rmail reassign 2017 emacs,rmail reassign 2018 emacs,rmail reassign 2019 emacs,rmail,w32 reassign 1034 emags,gnus reassign 1854 emacs,gnus quit From rgm@gnu.org Mon Jan 26 17:40:59 2009 Received: (at control) by emacsbugs.donarmstrong.com; 27 Jan 2009 01:41:00 +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.7 required=4.0 tests=MISSING_SUBJECT,NOSUBJECT, VALID_BTS_CONTROL,X_DEBBUGS_NO_ACK 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 n0R1evfq032685 for ; Mon, 26 Jan 2009 17:40:58 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LRcv9-0007YO-7Y; Mon, 26 Jan 2009 20:39:19 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18814.26055.130387.169875@fencepost.gnu.org> Date: Mon, 26 Jan 2009 20:39:19 -0500 From: Glenn Morris To: control X-Debbugs-No-Ack: yes reassign 2045 emacs,cc-mode reassign 2055 emacs,vc-dir reassign 2063 emacs,ns severity 2065 wishlist reassign 2078 spam close 1051 stop hello control server, are you listening? From unknown Mon Aug 18 15:38:33 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Wed, 18 Mar 2009 14:24:11 +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