From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/31078 Path: main.gmane.org!not-for-mail From: Shenghuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: \201's back in 8-bit MIME parts Date: 19 May 2000 01:29:26 -0400 Sender: owner-ding@hpc.uh.edu Message-ID: <2nwvkrxg3t.fsf@tiger.jia.vnet> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035167529 12011 80.91.224.250 (21 Oct 2002 02:32:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:32:09 +0000 (UTC) Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by mailhost.sclp.com (Postfix) with ESMTP id 0A486D051E for ; Fri, 19 May 2000 01:28:01 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id AAB04116; Fri, 19 May 2000 00:27:51 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 19 May 2000 00:27:11 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id AAA24951 for ; Fri, 19 May 2000 00:26:49 -0500 (CDT) Original-Received: from shenghuo.dhs.org (d185d1eec.rochester.rr.com [24.93.30.236]) by mailhost.sclp.com (Postfix) with ESMTP id 8FDF4D051E for ; Fri, 19 May 2000 01:27:09 -0400 (EDT) Original-Received: (from zsh@localhost) by shenghuo.dhs.org (8.10.0/8.10.0) id e4J5TRa27061; Fri, 19 May 2000 01:29:27 -0400 Original-To: ding@gnus.org X-Attribution: ZSH X-Face: 'IF:e51ib'Qbl^(}l^&4-J`'P!@[4~O|&k#:@Gld#b/]oMq&`&FVY._3+b`mzp~Jeve~/#/ ERD!OTe<86UhyN=l`mrPY)M7_}`Ktt\K+58Z!hu7>qU,i.N7TotU[FYE(f1;}`g2xj!u*l`^&=Q!g{ *q|ddto|nkt"$r,K$[)"|6,elPH= GJ6Q In-Reply-To: Lars Magne Ingebrigtsen's message of "19 May 2000 06:36:45 +0200" Original-Lines: 30 User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.6 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:31078 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:31078 >>>>> "LMI" == Lars Magne Ingebrigtsen writes: LMI> The following new code in mm-decode.el seems to lead to the text being LMI> decoded twice: LMI> (if (eq (or (mm-handle-encoding handle) LMI> (with-current-buffer (mm-handle-buffer handle) LMI> (mm-body-7-or-8))) LMI> '8bit) LMI> ;; Emacs MULE can not handle some 8bit characters in LMI> ;; multibyte character!! LMI> (let ((text (with-current-buffer (mm-handle-buffer handle) LMI> (mm-with-unibyte-current-buffer LMI> (buffer-string))))) LMI> (mm-with-unibyte-current-buffer LMI> (insert text))) LMI> (insert-buffer-substring (mm-handle-buffer handle))) LMI> The `insert' up there into a multibyte buffer actually decodes LMI> the text automatically (in Emacs 20.6, at least), so perhaps, er, LMI> some variable or other should be bound to avoid having that done. The mm-with-unibyte-current-buffer macro temporally disables multibyte feature of the current buffer, so the `insert' up there actually inserts the text into a unibyte buffer (without decoding). With this code, Gnus handles 8-bit UTF-8 part correctly in Emacs 20.6. Could you send me the message with 8-bit MIME parts? Shenghuo