From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/27669 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: attaching a tar files don't get it encoded Date: 04 Dec 1999 17:35:06 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035164654 25760 80.91.224.250 (21 Oct 2002 01:44:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:44:14 +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 LAA23602 for ; Sat, 4 Dec 1999 11:35:57 -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 KAB11469; Sat, 4 Dec 1999 10:35:33 -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:35:44 -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 KAA11721 for ; Sat, 4 Dec 1999 10:35:34 -0600 (CST) Original-Received: from badis.pdc.kth.se (root@badis.pdc.kth.se [130.237.221.45]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id LAA23593 for ; Sat, 4 Dec 1999 11:35:09 -0500 (EST) Original-Received: (from jas@localhost) by badis.pdc.kth.se (8.9.3/8.9.3) id RAA08903; Sat, 4 Dec 1999 17:35:07 +0100 X-Authentication-Warning: badis.pdc.kth.se: jas set sender to jas@pdc.kth.se using -f Original-To: ding@gnus.org In-Reply-To: Simon Josefsson's message of "04 Dec 1999 17:00:10 +0100" User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.4.92 Original-Lines: 18 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:27669 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:27669 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. Sorry for following up on my own post, but I traced it and the problem is because `find-charset-region' return 'ascii on the file contents which make `mm-body-7-or-8' return '7bit, which make `mm-encode-buffer' not encode the buffer at all. This last step is wrong, becuase \0x00 is ascii (according to `find-charset-region') so it makes Gnus send out ASCII 0 on the wire. `mm-encode-buffer': ;; We force buffers that are 7bit to be unencoded, no matter ;; what the preferred encoding is. (when (eq bits '7bit) (setq encoding bits))