From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/24817 Path: main.gmane.org!not-for-mail From: Soren Dayton Newsgroups: gmane.emacs.gnus.general Subject: mm-bidy-7-or-8 seems bogus to me [pgnus 0.95] Date: 26 Aug 1999 22:33:06 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: <86k8qh3nkd.fsf@polo.overx.com> Reply-To: dayton@overx.com NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035162319 10823 80.91.224.250 (21 Oct 2002 01:05:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:05:19 +0000 (UTC) Return-Path: Original-Received: from farabi.math.uh.edu (farabi.math.uh.edu [129.7.128.57]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id CAA03965 for ; Fri, 27 Aug 1999 02:00:36 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by farabi.math.uh.edu (8.9.3/8.9.3) with ESMTP id AAB10014; Fri, 27 Aug 1999 01:00:05 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 27 Aug 1999 01:00:10 -0500 (CDT) 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 AAA02788 for ; Fri, 27 Aug 1999 00:59:53 -0500 (CDT) Original-Received: from alexandria.cs.uchicago.edu (alexandria.cs.uchicago.edu [128.135.11.87]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id BAA03928 for ; Fri, 27 Aug 1999 01:59:03 -0400 (EDT) Original-Received: from mecca.overx.com (kropp-duster.cs.uchicago.edu [128.135.11.102]) by alexandria.cs.uchicago.edu (8.9.1/8.9.3) with ESMTP id AAA11500 for ; Fri, 27 Aug 1999 00:59:01 -0500 (CDT) Original-Received: from polo.overx.com (polo.overx.com [192.168.10.11]) by mecca.overx.com (Postfix) with ESMTP id DCB823E5E for ; Fri, 27 Aug 1999 00:58:59 -0500 (CDT) Original-Received: by polo.overx.com (Postfix, from userid 1001) id 752F13E6C; Thu, 26 Aug 1999 22:33:17 -0500 (CDT) Original-To: ding@gnus.org Original-Lines: 44 User-Agent: Gnus/5.070095 (Pterodactyl Gnus v0.95) XEmacs/21.1 (Big Bend) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:24817 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:24817 Consider a body that is nothing but nulls. This body is not encoded. (see the skip-chars-forward below) (note that mm-find-charset-region has a similar test in it) It seems to me that it ought to be encoded Concretely it means that tar files don't get encoded. And that people on the other side can't read them. MIME is supposed to fix this problem. Perhaps this should be "\001-\177" or even something like "\027-\177". What do people think? Thanks Soren (defun mm-body-7-or-8 () "Say whether the body is 7bit or 8bit." (cond ((not (featurep 'mule)) (if (save-excursion (goto-char (point-min)) (re-search-forward mm-8bit-char-regexp nil t)) '8bit '7bit)) (t ;; Mule version (if (and (null (delq 'ascii (mm-find-charset-region (point-min) (point-max)))) ;;!!!The following is necessary because the function ;;!!!above seems to return the wrong result under ;;!!!Emacs 20.3. Sometimes. (save-excursion (goto-char (point-min)) (skip-chars-forward "\0-\177") (eobp))) '7bit '8bit))))