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

Jon Moore <jonm@jjmoore.net> Fri, 20 July 2012 15:22 UTC

Return-Path: <jonm@jjmoore.net>
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 9CF5221F8617 for <ietf-types@ietfa.amsl.com>; Fri, 20 Jul 2012 08:22:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.777
X-Spam-Level:
X-Spam-Status: No, score=-1.777 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, 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 sbQNQcDczXgo for <ietf-types@ietfa.amsl.com>; Fri, 20 Jul 2012 08:22:41 -0700 (PDT)
Received: from mail-yx0-f172.google.com (mail-yx0-f172.google.com [209.85.213.172]) by ietfa.amsl.com (Postfix) with ESMTP id 1287F21F84D5 for <ietf-types@ietf.org>; Fri, 20 Jul 2012 08:22:40 -0700 (PDT)
Received: by yenq13 with SMTP id q13so4485153yen.31 for <ietf-types@ietf.org>; Fri, 20 Jul 2012 08:23:30 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding:x-gm-message-state; bh=nmQC3y/n4tI+0VAtigKAKgkYZFeZPkj+tqOFGgAXjzo=; b=WQ0UoUmMPXhh0R1rkMO+Ity+5IaVOssvnZxWRRPGSAFYEsQdOArHNtySgH+41+hDj5 +YYn00MeAffJNmGBBDlrT+u8mXBJX5WxtlhY/81WBOl28BUNINscbEsobOGoKJ1086HR m1Q0btJfIYYPk9LSBHgRnZU5pNJS1CEUG2OzfCnatqrW8vC+buasXwWosnQYugQR8yvL J/wtgLw3F68+fguuYeBYIq1evc30COjOqMo0kTTtMpC4sU4RTj1xPeqCxo8OB/rYnmks XbkyrQCcuWYeIF2Frc24ee8hVk6XfTCYLNjPF4SDC4wrlWMPiKUCip7K+2jQnQdVvti6 OA9g==
MIME-Version: 1.0
Received: by 10.50.203.98 with SMTP id kp2mr4780418igc.42.1342797810210; Fri, 20 Jul 2012 08:23:30 -0700 (PDT)
Received: by 10.64.57.4 with HTTP; Fri, 20 Jul 2012 08:23:30 -0700 (PDT)
X-Originating-IP: [75.149.106.130]
In-Reply-To: <CANfjZH3_6TjRWtuU5R6pdg3mUZf222R-+L17OVyeLLUnS4mngA@mail.gmail.com>
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>
Date: Fri, 20 Jul 2012 11:23:30 -0400
Message-ID: <CAMHjJ=R3v4QGUBAKk035juyrYoBKgN36y5A=LfF0jDimEVHeTg@mail.gmail.com>
From: Jon Moore <jonm@jjmoore.net>
To: Eric Prud'hommeaux <eric@w3.org>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Gm-Message-State: ALoCoQm+IPx2woRb8f84OkHvr8n4ktBKfNmV4MwtqybsU38MTVtGCuyc413WqCVN1iVY91jj6Unt
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 15:22:42 -0000

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