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

Simon Josefsson <simon@josefsson.org> Fri, 20 July 2012 10:37 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 879EC21F85C6 for <ietf-types@ietfa.amsl.com>; Fri, 20 Jul 2012 03:37:48 -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=[AWL=0.000, 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 RoXxtDFvly1z for <ietf-types@ietfa.amsl.com>; Fri, 20 Jul 2012 03:37:48 -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 887D621F85C2 for <ietf-types@ietf.org>; Fri, 20 Jul 2012 03:37:46 -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 q6KAcFqM012468 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 20 Jul 2012 12:38:27 +0200
From: Simon Josefsson <simon@josefsson.org>
To: Julian Reschke <julian.reschke@gmx.de>
References: <CAMHjJ=Sr+pVyqSCZeJw5ECjWHjSpeu1+womAxeAO6VQCv8aT6g@mail.gmail.com> <87k3y03q69.fsf@latte.josefsson.org> <50086D95.7080004@gmx.de>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:120720:julian.reschke@gmx.de::kEQnJgYufcgT9/HH:7wqb
X-Hashcash: 1:22:120720:ietf-types@ietf.org::Zm/Yoe17JNuUxxQP:HFDq
Date: Fri, 20 Jul 2012 12:38:14 +0200
In-Reply-To: <50086D95.7080004@gmx.de> (Julian Reschke's message of "Thu, 19 Jul 2012 22:27:01 +0200")
Message-ID: <87txx2yay1.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
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: Fri, 20 Jul 2012 10:37:48 -0000

Julian Reschke <julian.reschke@gmx.de> writes:

> On 2012-07-19 14:12, Simon Josefsson wrote:
>> Jon Moore <jonm@jjmoore.net> writes:
>>
>>> Hi folks,
>>>
>>> Given the recent arrival of HTTP PATCH in RFC 5789[1], it seems like
>>> registering a media type for the output of the 'diff' utility would be
>>> a good idea. I found this thread from 2007 where Julian Reschke
>>> proposed this exact thing:
>>>
>>> http://www.ietf.org/mail-archive/web/ietf-types/current/msg00591.html
>>>
>>> Does anyone know where this landed? I'd like to pick up the torch and
>>> at least work on text/diff (using the unified diff format, and limited
>>> to those diffs that can be rendered as valid text/* types). I've
>>> started putting together an Internet Draft for it, but was wondering
>>> if this had actually run into technical trouble, or if it just ran out
>>> of steam in 2007.
>>
>> The issue of how to deal with different character encodings were
>> unresolved, and I think it is important to get right.  The approach to
>> specify an application/patch is the easy way out.  Trying to resolve it
>> for a text/patch may be possible, but I fear it will be problematic in
>> practice.  Thus I lean towards a application/patch.
>
> Could you elaborate of what exactly you think would be easier to
> specify using application/patch instead of text/patch?

Some reasons that I had in mind were:

* There is no character set issues -- the encoder doesn't need to know
  which character encoding was used.  The specification doesn't have to
  talk about character sets (which makes up a big chunk of the current
  spec.)

* It can deal with diff's of files with different character sets,
  e.g. converting ISO-8859-1 files to UTF-8.  Like the draft says now,
  the text/* approach is unable to deal with this.

* Sometimes text/* parts are modified by gateways, and this is usually
  avoided by using an application/* type.  So the spec doesn't have to
  talk about these concerns.

However I support doing both media types.  For some situations,
text/patch is appropriate.

/Simon