From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/27671 Path: main.gmane.org!not-for-mail From: Shenghuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: attaching a tar files don't get it encoded Date: 04 Dec 1999 11:42:15 -0500 Organization: U of Rochester Sender: owner-ding@hpc.uh.edu Message-ID: <2naenqhd3s.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 1035164655 25770 80.91.224.250 (21 Oct 2002 01:44:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:44:15 +0000 (UTC) Return-Path: Original-Received: from bart.math.uh.edu (bart.math.uh.edu [129.7.128.48]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id LAA23632 for ; Sat, 4 Dec 1999 11:44:30 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by bart.math.uh.edu (8.9.1/8.9.1) with ESMTP id KAB11165; Sat, 4 Dec 1999 10:44:21 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 04 Dec 1999 10:44:34 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id KAA11945 for ; Sat, 4 Dec 1999 10:44:22 -0600 (CST) Original-Received: from mailhop1.nyroc.rr.com (mailhop1-0.nyroc.rr.com [24.92.226.120]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id LAA23624 for ; Sat, 4 Dec 1999 11:43:59 -0500 (EST) Original-Received: from mailout1.nyroc.rr.com ([10.92.226.81]) by mailhop1.nyroc.rr.com (Post.Office MTA v3.5.3 release 223 ID# 0-59787U250000L250000S0V35) with ESMTP id com for ; Sat, 4 Dec 1999 11:42:02 -0500 Original-Received: from heart.cs.rochester.edu ([24.24.58.252]) by mailout1.nyroc.rr.com (Post.Office MTA v3.5.3 release 223 ID# 0-59787U250000L250000S0V35) with ESMTP id com for ; Sat, 4 Dec 1999 11:41:47 -0500 Original-Received: (from zsh@localhost) by heart.cs.rochester.edu (8.9.3/8.9.3) id LAA23677; Sat, 4 Dec 1999 11:42:19 -0500 X-Authentication-Warning: tiger.jia.vnet: zsh set sender to zsh@cs.rochester.edu using -f 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: Simon Josefsson's message of "04 Dec 1999 17:35:06 +0100" Original-Lines: 25 User-Agent: Gnus/5.0803 (Gnus v5.8.3) XEmacs/21.2 (Shinjuku) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:27671 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:27671 >>>>> "Simon" == Simon Josefsson writes: Simon> Simon Josefsson writes: >> Attaching a tar file (not gzip:ed) as archive/tar doesn't seem to >> encode it with either base64 or QP, it's sent as binary data. Simon> Sorry for following up on my own post, but I traced it and the problem Simon> is because `find-charset-region' return 'ascii on the file contents Simon> which make `mm-body-7-or-8' return '7bit, which make Simon> `mm-encode-buffer' not encode the buffer at all. This last step is Simon> wrong, becuase \0x00 is ascii (according to `find-charset-region') so Simon> it makes Gnus send out ASCII 0 on the wire. Simon> `mm-encode-buffer': Simon> ;; We force buffers that are 7bit to be unencoded, no matter Simon> ;; what the preferred encoding is. Simon> (when (eq bits '7bit) Simon> (setq encoding bits)) Right, I just fixed it in CVS. -- Shenghuo