Re: [ietf-types] Status of application/patch or text/patch?

Simon Josefsson <simon@josefsson.org> Thu, 19 July 2012 13:38 UTC

Return-Path: <simon@josefsson.org>
X-Original-To: ietf-types@ietfa.amsl.com
Delivered-To: ietf-types@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id ABFFD21F8715 for <ietf-types@ietfa.amsl.com>; Thu, 19 Jul 2012 06:38:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -99.909
X-Spam-Level:
X-Spam-Status: No, score=-99.909 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FH_HOST_EQ_D_D_D_D=0.765, HELO_MISMATCH_COM=0.553, HOST_EQ_STATICB=1.372, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xBrlNXOlWA54 for <ietf-types@ietfa.amsl.com>; Thu, 19 Jul 2012 06:38:55 -0700 (PDT)
Received: from yxa-v.extundo.com (static-213-115-179-173.sme.bredbandsbolaget.se [213.115.179.173]) by ietfa.amsl.com (Postfix) with ESMTP id BFB6321F8700 for <ietf-types@ietf.org>; Thu, 19 Jul 2012 06:38:54 -0700 (PDT)
Received: from latte (static-213-115-179-130.sme.bredbandsbolaget.se [213.115.179.130]) (authenticated bits=0) by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q6JDdadr022651 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Thu, 19 Jul 2012 15:39:38 +0200
From: Simon Josefsson <simon@josefsson.org>
To: Jon Moore <jonm@jjmoore.net>
References: <CAMHjJ=Sr+pVyqSCZeJw5ECjWHjSpeu1+womAxeAO6VQCv8aT6g@mail.gmail.com> <87k3y03q69.fsf@latte.josefsson.org> <F39036BC-C76B-42C3-AE5D-AE67A820316E@jjmoore.net>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:120719:jonm@jjmoore.net::LVWsiHoU3vRl6ihH:4lpT
X-Hashcash: 1:22:120719:ietf-types@ietf.org::pGTakgRog7dnBUOn:Jt0e
Date: Thu, 19 Jul 2012 15:39:36 +0200
In-Reply-To: <F39036BC-C76B-42C3-AE5D-AE67A820316E@jjmoore.net> (Jon Moore's message of "Thu, 19 Jul 2012 09:24:15 -0400")
Message-ID: <87eho73m5j.fsf@latte.josefsson.org>
User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/23.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Virus-Scanned: clamav-milter 0.97.3 at yxa-v
X-Virus-Status: Clean
Cc: "ietf-types@ietf.org" <ietf-types@ietf.org>
Subject: Re: [ietf-types] Status of application/patch or text/patch?
X-BeenThere: ietf-types@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "Media \(MIME\) type review" <ietf-types.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf-types>, <mailto:ietf-types-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ietf-types>
List-Post: <mailto:ietf-types@ietf.org>
List-Help: <mailto:ietf-types-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf-types>, <mailto:ietf-types-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Jul 2012 13:38:55 -0000

Jon Moore <jonm@jjmoore.net> writes:

> I think application/{diff,patch} and text/{diff,patch} both have their
> places. The application/* version will be easier to specify, for
> sure. However, a very, very common use case for diff is exchanging
> source code diffs against ASCII-encoded files; being able to have a
> text/* version means, for example, that many clients will be able to
> treat them as generic text files--for example, a browser could just
> display the diff rather than downloading it. So the text/* version
> might be more generally consumable.
>
> There are probably some very simple rules by which a producer could
> run 'diff' and know that the output could be labelled 'text/diff'
> without much extra work (for example, if the two documents given as
> arguments to diff have the same encoding, and it is one of us-ascii,
> iso-8859-*, or utf-8,then you're good).

Agreed.

> My intent would be to document both media types. Does anyone have opinions regarding whether this should be one or two RFCs?

I would prefer one document, for easier review and less text
duplication.

/Simon