From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marc Horowitz Newsgroups: gmane.emacs.devel Subject: Re: base64 behavior is not MIME compliant Date: Tue, 05 Jul 2005 19:55:41 -0400 Message-ID: References: <87wto4j44m.fsf@kanga.tapsellferrier.co.uk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1120610294 2591 80.91.229.2 (6 Jul 2005 00:38:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Jul 2005 00:38:14 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, bugs@gnus.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 06 02:38:05 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DpxvO-0007dU-5y for ged-emacs-devel@m.gmane.org; Wed, 06 Jul 2005 02:38:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dpxwf-0000Sg-Rn for ged-emacs-devel@m.gmane.org; Tue, 05 Jul 2005 20:39:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dpxw8-0000Ig-FC for emacs-devel@gnu.org; Tue, 05 Jul 2005 20:38:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dpxw6-0000Hf-CX for emacs-devel@gnu.org; Tue, 05 Jul 2005 20:38:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DpxuI-0007cr-7A for emacs-devel@gnu.org; Tue, 05 Jul 2005 20:36:54 -0400 Original-Received: from [69.25.196.71] (helo=central-air-conditioning.toybox.cambridge.ma.us) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DpxMX-0003NT-Am; Tue, 05 Jul 2005 20:02:01 -0400 Original-Received: by central-air-conditioning.toybox.cambridge.ma.us (Postfix, from userid 8888) id 4D2F23C0C8; Tue, 5 Jul 2005 19:55:41 -0400 (EDT) Original-To: Nic Ferrier In-Reply-To: <87wto4j44m.fsf@kanga.tapsellferrier.co.uk> (Nic Ferrier's message of "Tue, 05 Jul 2005 23:10:33 +0100") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:40479 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40479 Nic Ferrier writes: >> Why can't you just pre-parse the data parsed to the base64 decoder? I >> believe that's the correct behaviour. A base64 decoder should decode >> base64, not "base64 but also it does this extra trick if you wave your >> hand in the air" You could do that, but then the pre-parser needs to know what base64 character sets looks like, so it's not a very clean abstraction. The decoder already knows everything it needs to know. It's also likely that other apps which want to do base64 decoding will want this same functionality, so repeating it makes little sense. But in the end, I don't care strongly if the code is in emacs or in gnus, as long as it's somewhere. Marc