Gnus development mailing list
 help / color / mirror / Atom feed
* mm-bidy-7-or-8 seems bogus to me [pgnus 0.95]
@ 1999-08-27  3:33 Soren Dayton
  1999-08-27  9:40 ` Toby Speight
  0 siblings, 1 reply; 3+ messages in thread
From: Soren Dayton @ 1999-08-27  3:33 UTC (permalink / raw)



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))))


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mm-bidy-7-or-8 seems bogus to me [pgnus 0.95]
  1999-08-27  3:33 mm-bidy-7-or-8 seems bogus to me [pgnus 0.95] Soren Dayton
@ 1999-08-27  9:40 ` Toby Speight
  1999-09-04  6:21   ` Soren Dayton
  0 siblings, 1 reply; 3+ messages in thread
From: Toby Speight @ 1999-08-27  9:40 UTC (permalink / raw)


Soren> Soren Dayton <URL:mailto:dayton@overx.com>

0> In article <86k8qh3nkd.fsf@polo.overx.com>, Soren wrote:

Soren> Perhaps this should be "\001-\177" or even something like
Soren> "\027-\177".  What do people think?

I think the latter is not a very good idea - I'd go more for something
more, like "\011\012\015\027-\177" to allow TAB, LF, and CR in ASCII.
\014 (FF) is probably okay, too.  Some other characters require
thought (ESC?).



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mm-bidy-7-or-8 seems bogus to me [pgnus 0.95]
  1999-08-27  9:40 ` Toby Speight
@ 1999-09-04  6:21   ` Soren Dayton
  0 siblings, 0 replies; 3+ messages in thread
From: Soren Dayton @ 1999-09-04  6:21 UTC (permalink / raw)


Toby Speight <Toby.Speight@streapadair.freeserve.co.uk> writes:

> Soren> Soren Dayton <URL:mailto:dayton@overx.com>
> 
> 0> In article <86k8qh3nkd.fsf@polo.overx.com>, Soren wrote:
> 
> Soren> Perhaps this should be "\001-\177" or even something like
> Soren> "\027-\177".  What do people think?
> 
> I think the latter is not a very good idea - I'd go more for something
> more, like "\011\012\015\027-\177" to allow TAB, LF, and CR in ASCII.
> \014 (FF) is probably okay, too.  Some other characters require
> thought (ESC?).

Fair enough.  You get my point. pgnus does the wrong thing.

Soren


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-09-04  6:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-08-27  3:33 mm-bidy-7-or-8 seems bogus to me [pgnus 0.95] Soren Dayton
1999-08-27  9:40 ` Toby Speight
1999-09-04  6:21   ` Soren Dayton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).