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

"Eric Prud'hommeaux" <eric@w3.org> Fri, 20 July 2012 19:06 UTC

Return-Path: <ericw3c@gmail.com>
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 5679321F855F for <ietf-types@ietfa.amsl.com>; Fri, 20 Jul 2012 12:06:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.076
X-Spam-Level:
X-Spam-Status: No, score=-2.076 tagged_above=-999 required=5 tests=[AWL=-0.300, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, J_CHICKENPOX_12=0.6, J_CHICKENPOX_48=0.6, RCVD_IN_DNSWL_LOW=-1]
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 NAE6BX7GtKGE for <ietf-types@ietfa.amsl.com>; Fri, 20 Jul 2012 12:06:55 -0700 (PDT)
Received: from mail-vb0-f44.google.com (mail-vb0-f44.google.com [209.85.212.44]) by ietfa.amsl.com (Postfix) with ESMTP id 89A3921F8505 for <ietf-types@ietf.org>; Fri, 20 Jul 2012 12:06:54 -0700 (PDT)
Received: by vbbez10 with SMTP id ez10so3543104vbb.31 for <ietf-types@ietf.org>; Fri, 20 Jul 2012 12:07:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=1ViTAlaq65+VbDtiwELyTzP0gaqK+fiuWqp5V8OXGdY=; b=jYHoBk0v9V/r7/Np7kX2wYOGCIXXb6o16x3zyO40cU4QEKZLtS1WlgovDnxAt48OS/ dhuGTyqfNOxvp/XApm2REHNesunZmvPO/HjmZj96bZJPOT112+47ccrALBgOef94pmLr kGl9EmexgOuOKO/W7jeLo8Py0Z/Q8iUO32OWRJ7sN8x4yhyH7wcyHLnsOAWrdFohGzYa QuLglCmrEOt/QzzcitucVKFInbtgc2S9bqOSOfohm5BqQEskPK9llPi/LsGc4FGQ5wtr DRptf1ruEcZp0RxgRcbfEMjWvYyHz2PJmU0l2vtRwSa4VuJHn9qPIYX/luUGxcoq2EIy Em7Q==
MIME-Version: 1.0
Received: by 10.52.176.66 with SMTP id cg2mr4735333vdc.121.1342811270881; Fri, 20 Jul 2012 12:07:50 -0700 (PDT)
Sender: ericw3c@gmail.com
Received: by 10.52.156.129 with HTTP; Fri, 20 Jul 2012 12:07:50 -0700 (PDT)
Received: by 10.52.156.129 with HTTP; Fri, 20 Jul 2012 12:07:50 -0700 (PDT)
In-Reply-To: <1F8E110D-6F65-442D-922A-C88090FC33F2@hoplahup.net>
References: <CAMHjJ=Sr+pVyqSCZeJw5ECjWHjSpeu1+womAxeAO6VQCv8aT6g@mail.gmail.com> <87k3y03q69.fsf@latte.josefsson.org> <50086D95.7080004@gmx.de> <87txx2yay1.fsf@latte.josefsson.org> <50093E36.1000107@gmx.de> <vmfi08t6tr0n8aisarmurigm7f8h4j484i@hive.bjoern.hoehrmann.de> <50094599.3090804@gmx.de> <nlii08hr4iatmckce26oh8fq9u9o1fv31k@hive.bjoern.hoehrmann.de> <CANfjZH3_6TjRWtuU5R6pdg3mUZf222R-+L17OVyeLLUnS4mngA@mail.gmail.com> <CAMHjJ=R3v4QGUBAKk035juyrYoBKgN36y5A=LfF0jDimEVHeTg@mail.gmail.com> <1F8E110D-6F65-442D-922A-C88090FC33F2@hoplahup.net>
Date: Fri, 20 Jul 2012 15:07:50 -0400
X-Google-Sender-Auth: 2YHqliA1MQtHGcZKP93400Fb5ZY
Message-ID: <CANfjZH3CFhTexivfEEzLT3cFYmke6P41TgqAEzvCXAoyBaskCw@mail.gmail.com>
From: Eric Prud'hommeaux <eric@w3.org>
To: Paul Libbrecht <paul@hoplahup.net>
Content-Type: multipart/alternative; boundary="20cf307f34bacd241204c5479c85"
Cc: Julian Reschke <julian.reschke@gmx.de>, Simon Josefsson <simon@josefsson.org>, Bjoern Hoehrmann <derhoermi@gmx.net>, 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 19:06:56 -0000

On Jul 20, 2012 8:46 PM, "Paul Libbrecht" <paul@hoplahup.net> wrote:
>
> Erm... source charset makes sense to me (this is "the charset of the
patch").
> But target charset makes no sense into a media-type... this is "after
applying a patch" which is beyond the scope of a single file.

Just to be clear, I am quite happy to write off the encoding transformation
use case. My argument was that, even without that use case, we need a
charset. Given that constraint, we may as well use the text tree.

> Paul
>
>
> Le 20 juil. 2012 à 17:23, Jon Moore a écrit :
>
> > On Fri, Jul 20, 2012 at 9:40 AM, Eric Prud'hommeaux <eric@w3.org> wrote:
> >> Writing off this use case means I don't need to know the *resulting*
> >> character encoding, but that doesn't mean I don't want to know the
character
> >> encoding of a patch which someone mails me or I encounter on the web.
> >> Presuming that the patch matches the target is unreliable and invites a
> >> proliferation of doubly-encoded Ås and buried f'ed up authors' names
and
> >> math symbols.
> >
> > Yes, I was thinking about this too. I believe for the application/*
> > format, we might want to have two (optional) parameters defaulting to
> > us-ascii, perhaps "source-charset" and "target-charset", as a way to
> > describe the "mixed" character set case (where I'm converting from
> > iso-8859-1 to utf-8, for example). Perhaps "charset" as a shorthand
> > for specifying both when they match. We'll have to document what the
> > precedence is among these options if they are over-specified, but this
> > seems tractable.
> >
> >> If we then say that we need a charset parameters, a naive agent
already has
> >> what it needs to suss out line breaks and render text. I'd rather not
see
> >> two media types with no principled descriminator so I'd like to see
text/
> >> with the usual charset rules.
> >
> > Agreed. If a patch can be represented as a text/* type then it should
> > have a singular charset parameter describing the patch as a whole. The
> > draft I-D(*) I'm working up (https://github.com/jonm/text-diff)
> > already contemplates this.
> >
> > Jon
> >
> > (*) I don't think what I currently have there is a viable RFC
> > candidate, so I haven't formally submitted it as an I-D yet. On the
> > other hand, saying "draft Internet-Draft" begs a certain question, and
> > I don't have enough IETF experience to make the call. Is what's there
> > useful enough to start a conversation like this one (meaning I should
> > go ahead and issue version 00 of the I-D), or should I wait until I
> > think there's something closer to a "release candidate"? Any opinions?
> > ........
> > Jon Moore
> > _______________________________________________
> > ietf-types mailing list
> > ietf-types@ietf.org
> > https://www.ietf.org/mailman/listinfo/ietf-types
>