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

Paul Libbrecht <paul@hoplahup.net> Fri, 20 July 2012 18:45 UTC

Return-Path: <paul@hoplahup.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 2EF2411E8098 for <ietf-types@ietfa.amsl.com>; Fri, 20 Jul 2012 11:45:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.049
X-Spam-Level:
X-Spam-Status: No, score=-1.049 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HELO_EQ_DE=0.35, J_CHICKENPOX_12=0.6, J_CHICKENPOX_48=0.6]
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 GkLv-81wYkwP for <ietf-types@ietfa.amsl.com>; Fri, 20 Jul 2012 11:45:16 -0700 (PDT)
Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.8]) by ietfa.amsl.com (Postfix) with ESMTP id 29C4E11E807F for <ietf-types@ietf.org>; Fri, 20 Jul 2012 11:45:15 -0700 (PDT)
Received: from [192.168.178.32] (p5DDEC373.dip0.t-ipconnect.de [93.222.195.115]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0Lxdlr-1TuHcX0wnr-017IDz; Fri, 20 Jul 2012 20:46:10 +0200
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset="iso-8859-1"
From: Paul Libbrecht <paul@hoplahup.net>
In-Reply-To: <CAMHjJ=R3v4QGUBAKk035juyrYoBKgN36y5A=LfF0jDimEVHeTg@mail.gmail.com>
Date: Fri, 20 Jul 2012 20:46:09 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <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>
To: Jon Moore <jonm@jjmoore.net>
X-Mailer: Apple Mail (2.1084)
X-Provags-ID: V02:K0:M6KajnFF9wyQ0Kl4Ms/zuaqnUoAROWrXXdYpUMWd9Co hdTGxc5XJdkCYgSEXVL++5sbp9IFCEGGp32NzrPu99v/HUGl2T 7Q4QCtBdI4FrmlNIEx28HD2viErUHSOhGRm+PyXSJSMOPVZOpW wnitZQRLgwTAYz7DRaL5NPjZ7A+dBv4fNmW10HJ/LllGtiSkem Bbkd8h+8krmGJc3qdHBFkMO11FzdDLs4v13bWJS+k7PzsOsyaH W2Cf+Xr89vLnx2WAh7baR6RVFrPaKCj5hW44i1FbaIWkxnNtKX JBmp9mG4ZTAgotvrGMhbHt/Q8RLGsoVL06K4N51WmbV4wH0sn4 HGvpATERwxVVzamJeJHpAAwXOHNseeT+tuL8wTfwbYxipTRK/h O8jzACktKbMXQ==
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 18:45:17 -0000

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.

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