From unknown Sun Jun 15 08:59:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11282: 24.1.50; Error in decoding message Resent-From: Richard Stallman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Apr 2012 18:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11282 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 11282@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Reply-To: rms@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.133486079626174 (code B ref -1); Thu, 19 Apr 2012 18:40:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Apr 2012 18:39:56 +0000 Received: from localhost ([127.0.0.1]:42224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKwGo-0006o5-S2 for submit@debbugs.gnu.org; Thu, 19 Apr 2012 14:39:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57053) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKwGk-0006nr-PR for submit@debbugs.gnu.org; Thu, 19 Apr 2012 14:39:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKwGI-0004QJ-Gh for submit@debbugs.gnu.org; Thu, 19 Apr 2012 14:39:25 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,NULL_IN_BODY, RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD,UNWANTED_LANGUAGE_BODY autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:40055) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKwGI-0004QE-6a for submit@debbugs.gnu.org; Thu, 19 Apr 2012 14:39:22 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKwGE-0004My-NF for bug-gnu-emacs@gnu.org; Thu, 19 Apr 2012 14:39:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKwGA-0004PC-Mt for bug-gnu-emacs@gnu.org; Thu, 19 Apr 2012 14:39:18 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:41728) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKwGA-0004P8-JA for bug-gnu-emacs@gnu.org; Thu, 19 Apr 2012 14:39:14 -0400 Received: from rms by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SKwG9-0004v7-NR; Thu, 19 Apr 2012 14:39:13 -0400 Date: Thu, 19 Apr 2012 14:39:13 -0400 Message-Id: Content-Type: text/plain; charset=ISO-8859-15 From: Richard Stallman X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -5.3 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.3 (-----) This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgement at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': When I visit this as an Rmail file, Rmail gets an error decoding the coding system. Maybe the message really is invalid, but Rmail should not get an unhandled Lisp error. Here is the backtrace. Debugger entered--Lisp error: (wrong-type-argument wholenump nil) decode-coding-region(888 1351 utf-7) rmail-mime-insert-decoded-text([("text/html" (charset . "utf-7")) ("inline") "7bit" [[nil nil nil] [t nil t]] [# # t] ["" (nil) nil] [# # t] nil rmail-mime-insert-text nil]) rmail-mime-insert-text([("text/html" (charset . "utf-7")) ("inline") "7bit" [[nil nil nil] [t nil t]] [# # t] ["" (nil) nil] [# # t] nil rmail-mime-insert-text nil]) rmail-mime-insert([("text/html" (charset . "utf-7")) ("inline") "7bit" [[nil nil nil] [t nil t]] [# # t] ["" (nil) nil] [# # t] nil rmail-mime-insert-text nil]) rmail-show-mime() rmail-show-message-1(nil) rmail-show-message(nil) byte-code("q\210 \204\f\304\305 !\210\n\203\306 \210\307 \210 \203\310\311!\210\304\207" [mail-buf msg-shown rmail-display-summary run-mail-hook rmail-show-message rmail-first-unseen-message rmail-summary rmail-construct-io-menu run-hooks rmail-mode-hook] 2) rmail("~/bad-message") rmail-input("~/bad-message") call-interactively(rmail-input nil nil) Here is the file, uuencoded: begin 666 bad-message M1G)O;2!B=6)B:6YZ0&%O;"YC;VT@(%1H=2!!<'(@,3D@,#`Z-#&EM(#0N-S$I"@DH96YV96QO<&4M9G)O;2`\8G5B8FEN>D!A;VPN8V]M M/BD*"6ED(#%32VI'<2TP,#`U6E@M,SD*"69O2!E9V=S+F=N=2YO65S('-P86T@<')O8F%B:6QI='D@:7,@.3D@=&\@,3`P M)0H)*B`@("`@(%MS8V]R93H@,2XP,#`P70H)*B`@,RXP($%80E]87T%/3%]3 M15I?4R!!3TP@2!A8G5S960@96YD=7-E'0O:'1M;"!-24U%('!A0H)*B`@,"XP(%1?1$M)35]) M3E9!3$E$($1+24TM4VEG;F%T=7)E(&AE861E&ES=',@8G5T(&ES(&YO M="!V86QI9`H)*B`@,"XP($933%]-25-34%]215!,651/($UI&EM(#0N-S$I"@DH96YV96QO<&4M9G)O;2`\8G5B8FEN>D!A;VPN M8V]M/BD*"6ED(#%32VI';BTP,#`V4S@M1T\*"69O"YA;VPN8V]M("AM=&%O=70M;6(P,BYR M,3`P,"YM>"YA;VPN8V]M(%LQ-S(N,CDN-#$N-C9=*0H)8GD@;VUS+6UB,#0N M3H@,PI8+4U336%I;"U03H@3F]R;6%L"E@M36%I;&5R M.B!-:6-R;W-O9G0@3W5T;&]O:R!%>'!R97-S(#8N,#`N,C8P,"XP,#`P"E@M M36EM94],13H@4')O9'5C960@0GD@36EC&)H-312;WA( M+TU2,6)7,S-(43A..6]9<%!S;4EW17,O.7=U3V)+4TIR6'=9:&0R-6)'2G95 M;C5L15)'14,*"2!F.'AK5&@O=&56-U!*6%E6"UA;VPM7-T96TZ(&)Y(&5G9W,N9VYU+F]R9SH@1V5N2!C87-H('!O:6YT+"!S:&]P<&EN9R!M86QL(&]R(`IB M86YK:6YG+B!297!L>2!F;W(@9G5L;"!D971A:6QS($]2(&-A;&P@5$5,.B`K M,C,T.#`U-38Y,#DT.2X\+V9O;G0^/"]P/@H*/"]B;V1Y/@H*/"]H=&UL/@H* ` end If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /home/rms/emacs-bzr/trunk/etc/DEBUG. In GNU Emacs 24.1.50.1 (mips64el-unknown-linux-gnu, GTK+ Version 2.12.12) of 2012-04-10 on theobromine2 Bzr revision: 107831 larsi@gnus.org-20120410025139-hm28pdi28nbr8ybg Configured using: `configure 'CFLAGS=-g -O0'' 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: RMAIL Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t gpm-mouse-mode: t display-battery-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-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: DEL ESC DEL DEL DEL DEL DEL e SPC o f SPC t h e SPC s p e e c h . . C-p ESC k ESC k , SPC i f SPC t h e SPC d i n n e r SPC e n d s SPC a t SPC a SPC t i m e SPC t h a t SPC ESC b ESC b ESC b ESC b ESC b ESC b ESC d s p e e c h C-e i s n ' t SPC t o o SPC l a t e RET t o SPC h a v e SPC d i n n e r . C-c C-c C-d x C-x b o u t g TAB RET g C-p C-o C-x o C-x 1 C-u C-u C-n C-n C-n C-n C-n C-o C-o T h a n k SPC y o u . C-n C-n ESC f ESC f ESC d SPC n i c e ESC q C-o . SPC SPC C a n SPC t h e ESC d ESC d ESC f ESC f DEL ESC q C-n DEL ? C-p C-e ESC DEL ESC DEL t h e SPC r e s t a u r a n t s RET a r e SPC s y i l DEL DEL DEL t i l l SPC o p e n ? ESC k C-x C-s C-x b R TAB RET C-d q ESC v ESC v ESC v C-x h ESC x w r SPC r e RET b a d - m e s s a g e RET i ESC p RET q ESC x r e p o r t SPC e m a c s SPC b u g RET Recent messages: Error during redisplay: (error "Invalid base64 data") Entering debugger... Back to top level. scroll-down-command: Beginning of buffer Mark set [2 times] Wrote /home/rms/bad-message Counting messages...done Error during redisplay: (error "Invalid base64 data") Entering debugger... Back to top level. Load-path shadows: /home/rms/emacs-bzr/trunk/lisp/mouse-sel hides /home/rms/emacs-bzr/trunk/lisp/obsolete/mouse-sel /home/rms/emacs-bzr/trunk/lisp/mail/mailpost hides /home/rms/emacs-bzr/trunk/lisp/obsolete/mailpost Features: (shadow emacsbug tar-mode jka-compr epa-mail epa derived epg epg-config utf-7 novice vc-sccs vc-svn vc-rcs vc-dir ewoc etags compare-w ispell apropos pp find-func debug cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs conf-mode info help-fns whitespace rmailsum log-view vc-bzr dired-aux ind-util mule-util cal-move cal-menu calendar cal-loaddefs log-edit pcvs-util add-log diff-mode easy-mmode vc ediff-merg ediff-diff ediff-wind ediff-help ediff-util ediff-mult ediff-init ediff vc-dispatcher parse-time vc-cvs sgml-mode dabbrev multi-isearch shell pcomplete grep compile comint ansi-color ring quail help-mode view rmailout qp newcomment mailalias rmailmm message sendmail format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader mail-parse rfc2231 rmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils dired regexp-opt t-mouse time-date battery paren cus-start cus-load tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) -- Dr Richard Stallman President, Free Software Foundation 51 Franklin St Boston MA 02110 USA www.fsf.org www.gnu.org Skype: No way! That's nonfree (freedom-denying) software. Use Ekiga or an ordinary phone call From unknown Sun Jun 15 08:59:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11282: 24.1.50; Error in decoding message References: Resent-From: Kenichi Handa Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Apr 2012 01:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11282 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: rms@gnu.org Cc: 11282@debbugs.gnu.org Received: via spool by 11282-submit@debbugs.gnu.org id=B11282.13348857491747 (code B ref 11282); Fri, 20 Apr 2012 01:36:01 +0000 Received: (at 11282) by debbugs.gnu.org; 20 Apr 2012 01:35:49 +0000 Received: from localhost ([127.0.0.1]:43016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SL2lI-0000S5-4d for submit@debbugs.gnu.org; Thu, 19 Apr 2012 21:35:49 -0400 Received: from na3sys010aog104.obsmtp.com ([74.125.245.76]:39563) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SL2k4-0000Q8-CC for 11282@debbugs.gnu.org; Thu, 19 Apr 2012 21:34:37 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]) (using TLSv1) by na3sys010aob104.postini.com ([74.125.244.12]) with SMTP ID DSNKT5C9EeSJZ9gb5rwMstYV7B5YLzUb8vSA@postini.com; Thu, 19 Apr 2012 18:34:10 PDT Received: by dajx4 with SMTP id x4so14137671daj.0 for <11282@debbugs.gnu.org>; Thu, 19 Apr 2012 18:34:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aist.go.jp; s=google; h=from:to:cc:subject:in-reply-to:date:message-id:mime-version :content-type; bh=lEZdSULjAtfsCvTWy2tLgxqXXOhZs7NHUrIAuVf/zfc=; b=HDZKPHm9b58E1vq+MLOsdmP73BpYS09twluzPXyxZq7Uln+Y/n0skki9BqeTBAET/M D7y6X+QquU1POYJ5vEetfRat7SSUr2qlF6hLRPK+G6JmvOkL6skNHJpNKHANwbRHwK7y HZ4FQioIWhuzKAy2nRFDCTI89Si7ILyJ8dQgM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:mime-version :content-type:x-gm-message-state; bh=lEZdSULjAtfsCvTWy2tLgxqXXOhZs7NHUrIAuVf/zfc=; b=F4NehDfwSu+igPSD5kRtmJhY3kKPa5LZ7QajN66EE80assNazab4jwFQt09ikUxzdl pcaHjNhQPvnsOXiGsPFTSHY/ZsyDaeS4v3oRYEdYjzk6MS28U5UcbkjSa3TD+eeWcIz/ 6llA8cBfHx0uS6r9xo9D/K5/UfQCcfIqBONZpR0bEsSHD0oX4MdPg+h6hDp6a1mlfDBJ MwAyKmLWi5X4E8JwG4pogksJEs4MCIi9h7Upu8QrEBx0BV1Ka8llIcPD+wKu1yhzMsqC 8gUsXB8Q4/OIkzT5hD/AKU4bkfp9q8auQT405zgrl5Bsxz+1fnOngT6Cb9bfGxPJrGrq zjhg== Received: by 10.68.136.1 with SMTP id pw1mr8651994pbb.105.1334885649000; Thu, 19 Apr 2012 18:34:09 -0700 (PDT) Received: from etlken ([150.29.148.131]) by mx.google.com with ESMTPS id x1sm3783299pbp.50.2012.04.19.18.34.07 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 19 Apr 2012 18:34:08 -0700 (PDT) From: Kenichi Handa In-Reply-To: (message from Richard Stallman on Thu, 19 Apr 2012 14:39:13 -0400) Date: Fri, 20 Apr 2012 10:34:05 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Gm-Message-State: ALoCoQn9bTxjl2S9AWkX2qxwBPAuOCRT2GaANFHzlgTKEOXeExto7RSD5xbfLRm7t3RvfR4r8zFT X-Spam-Score: -4.2 (----) X-Mailman-Approved-At: Thu, 19 Apr 2012 21:35:46 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) In article , Richard Stallman writes: > When I visit this as an Rmail file, Rmail gets an error > decoding the coding system. Maybe the message really is > invalid, but Rmail should not get an unhandled Lisp error. > Here is the backtrace. > Debugger entered--Lisp error: (wrong-type-argument wholenump nil) > decode-coding-region(888 1351 utf-7) > rmail-mime-insert-decoded-text([("text/html" (charset . "utf-7")) ("inline") "7bit" [[nil nil nil] [t nil t]] [# # t] ["" (nil) nil] [# # t] nil rmail-mime-insert-text nil]) As I can reproduce the bug, I'll work on fixing it. --- Kenichi Handa handa@m17n.org From unknown Sun Jun 15 08:59:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11282: 24.1.50; Error in decoding message References: Resent-From: Kenichi Handa Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 May 2012 06:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11282 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: rms@gnu.org Cc: 11282@debbugs.gnu.org Received: via spool by 11282-submit@debbugs.gnu.org id=B11282.133611342821791 (code B ref 11282); Fri, 04 May 2012 06:38:01 +0000 Received: (at 11282) by debbugs.gnu.org; 4 May 2012 06:37:08 +0000 Received: from localhost ([127.0.0.1]:35579 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SQC8Z-0005fN-Pb for submit@debbugs.gnu.org; Fri, 04 May 2012 02:37:08 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:43454 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SQC7e-0005df-3a for 11282@debbugs.gnu.org; Fri, 04 May 2012 02:36:11 -0400 Received: from 126.229.accsnet.ne.jp ([202.220.229.126]:53374 helo=ubuntu) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SQC5s-0002gn-1H; Fri, 04 May 2012 02:34:20 -0400 From: Kenichi Handa In-Reply-To: (message from Richard Stallman on Thu, 19 Apr 2012 14:39:13 -0400) Date: Fri, 04 May 2012 15:33:55 +0900 Message-ID: <87ehr078vg.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.9 (------) X-Mailman-Approved-At: Fri, 04 May 2012 02:37:06 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) In article , Richard Stallman writes: > When I visit this as an Rmail file, Rmail gets an error > decoding the coding system. Maybe the message really is > invalid, but Rmail should not get an unhandled Lisp error. > Here is the backtrace. > Debugger entered--Lisp error: (wrong-type-argument wholenump nil) > decode-coding-region(888 1351 utf-7) > rmail-mime-insert-decoded-text([("text/html" (charset . "utf-7")) ("inline") "7bit" [[nil nil nil] [t nil t]] [# # t] ["" (nil) nil] [# # t] nil rmail-mime-insert-text nil]) [...] I've just installed this change to the trunk. I think it should also be applied to 24.1. 2012-05-03 Kenichi Handa * mail/rmailmm.el (rmail-show-mime): Catch an error caused by text decoding, and show a warning message without signalling an error (Bug#11282). === modified file 'lisp/mail/rmailmm.el' --- lisp/mail/rmailmm.el 2012-01-19 07:21:25 +0000 +++ lisp/mail/rmailmm.el 2012-05-03 05:47:24 +0000 @@ -1300,26 +1300,40 @@ (rmail-mime-mbox-buffer rmail-buffer) (rmail-mime-view-buffer rmail-view-buffer) (rmail-mime-coding-system nil)) + ;; If ENTITY is not a vector, it is a string describing an error. (if (vectorp entity) (with-current-buffer rmail-mime-view-buffer (erase-buffer) - (rmail-mime-insert entity) - (if (consp rmail-mime-coding-system) - ;; Decoding is done by rfc2047-decode-region only for a - ;; header. But, as the used coding system may have been - ;; overridden by mm-charset-override-alist, we can't - ;; trust (car rmail-mime-coding-system). So, here we - ;; try the decoding again with mm-charset-override-alist - ;; bound to nil. - (let ((mm-charset-override-alist nil)) - (setq rmail-mime-coding-system - (rmail-mime-find-header-encoding - (rmail-mime-entity-header entity))))) - (set-buffer-file-coding-system - (if rmail-mime-coding-system - (coding-system-base rmail-mime-coding-system) - 'undecided) - t t)) + ;; This condition-case is for catching an error in the + ;; internal MIME decoding (e.g. incorrect BASE64 form) that + ;; may be signaled by rmail-mime-insert. + ;; FIXME: The current code doesn't set a proper error symbol + ;; in ERR. We must find a way to propagate a correct error + ;; symbol that is caused in the very deep code of text + ;; decoding (e.g. an error by base64-decode-region called by + ;; post-read-conversion function of utf-7). + (condition-case err + (progn + (rmail-mime-insert entity) + (if (consp rmail-mime-coding-system) + ;; Decoding is done by rfc2047-decode-region only for a + ;; header. But, as the used coding system may have been + ;; overridden by mm-charset-override-alist, we can't + ;; trust (car rmail-mime-coding-system). So, here we + ;; try the decoding again with mm-charset-override-alist + ;; bound to nil. + (let ((mm-charset-override-alist nil)) + (setq rmail-mime-coding-system + (rmail-mime-find-header-encoding + (rmail-mime-entity-header entity))))) + (set-buffer-file-coding-system + (if rmail-mime-coding-system + (coding-system-base rmail-mime-coding-system) + 'undecided) + t t)) + (error (setq entity (format "%s" err)))))) + ;; Re-check ENTITY. It may be set to an error string. + (when (stringp entity) ;; Decoding failed. ENTITY is an error message. Insert the ;; original message body as is, and show warning. (let ((region (with-current-buffer rmail-mime-mbox-buffer From unknown Sun Jun 15 08:59:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11282: 24.1.50; Error in decoding message Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 May 2012 10:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11282 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Kenichi Handa Cc: 11282@debbugs.gnu.org, rms@gnu.org Received: via spool by 11282-submit@debbugs.gnu.org id=B11282.133612742612331 (code B ref 11282); Fri, 04 May 2012 10:31:02 +0000 Received: (at 11282) by debbugs.gnu.org; 4 May 2012 10:30:26 +0000 Received: from localhost ([127.0.0.1]:35770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SQFmM-0003Cn-2z for submit@debbugs.gnu.org; Fri, 04 May 2012 06:30:26 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:46896 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SQFmI-0003CU-B7 for 11282@debbugs.gnu.org; Fri, 04 May 2012 06:30:23 -0400 Received: from bb219-74-179-11.singnet.com.sg ([219.74.179.11]:34846 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SQFkU-0007Be-O3; Fri, 04 May 2012 06:28:31 -0400 From: Chong Yidong References: <87ehr078vg.fsf@gnu.org> Date: Fri, 04 May 2012 18:28:23 +0800 In-Reply-To: <87ehr078vg.fsf@gnu.org> (Kenichi Handa's message of "Fri, 04 May 2012 15:33:55 +0900") Message-ID: <87wr4sxmt4.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.96 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.9 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Kenichi Handa writes: > I've just installed this change to the trunk. I think it > should also be applied to 24.1. Done. From debbugs-submit-bounces@debbugs.gnu.org Fri May 04 06:30:29 2012 Received: (at control) by debbugs.gnu.org; 4 May 2012 10:30:29 +0000 Received: from localhost ([127.0.0.1]:35772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SQFmO-0003D2-LL for submit@debbugs.gnu.org; Fri, 04 May 2012 06:30:29 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:46897 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SQFmK-0003Cf-Lg for control@debbugs.gnu.org; Fri, 04 May 2012 06:30:25 -0400 Received: from bb219-74-179-11.singnet.com.sg ([219.74.179.11]:34847 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SQFke-0007Cv-Bm for control@debbugs.gnu.org; Fri, 04 May 2012 06:28:41 -0400 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 11282 Date: Fri, 04 May 2012 18:28:33 +0800 Message-ID: <87397gutny.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) close 11282 thanks