Re: [ietf-types] Status of application/patch or text/patch?
"Eric Prud'hommeaux" <eric@w3.org> Sat, 21 July 2012 10:10 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 43D6F21F8678 for <ietf-types@ietfa.amsl.com>; Sat, 21 Jul 2012 03:10:29 -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=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, J_CHICKENPOX_41=0.6, MIME_8BIT_HEADER=0.3, 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 n6-kV0KTUvvt for <ietf-types@ietfa.amsl.com>; Sat, 21 Jul 2012 03:10:28 -0700 (PDT)
Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by ietfa.amsl.com (Postfix) with ESMTP id 67F3621F8539 for <ietf-types@ietf.org>; Sat, 21 Jul 2012 03:10:28 -0700 (PDT)
Received: by vcbfo14 with SMTP id fo14so3899353vcb.31 for <ietf-types@ietf.org>; Sat, 21 Jul 2012 03:11:26 -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=UR44VvThg3nbBWLfta/lZ1poP+eWqOnDbDFXY+LBv0U=; b=IlLtDs/qRPHEZG+5ocp6d2YQd9h0L0Q3+Na8+B0eoHN0HWl2Pyf+XGI/jYz1yUJwiu r+gLR2l8xiWjdIq1GWrp4oKNi0Cgit+6AY5hGPfCPMBClMjt3u9RfBbclBEYisHpqDp0 ItkTCFxDmeX7TwWMKzIGa5rIeSs1zBrK+uonkh3Ge+8BMBN5JmAx2mqn+kKgg4ZtV8zA wnPXzu3wKXPMlw6WhBF87FQFa4BCU+3nY4eRo3vKwNpLnZEWy+plRQx9Wb/9GpTd1b+z Ggo59bYQkHdUgNAB32ZBYZbScysVl4u9jbwZvVcCi1iO7iVJmGyagJ3VRrIi5XyiUUNg eXug==
MIME-Version: 1.0
Received: by 10.52.93.194 with SMTP id cw2mr6299592vdb.9.1342865486258; Sat, 21 Jul 2012 03:11:26 -0700 (PDT)
Sender: ericw3c@gmail.com
Received: by 10.52.156.129 with HTTP; Sat, 21 Jul 2012 03:11:25 -0700 (PDT)
Received: by 10.52.156.129 with HTTP; Sat, 21 Jul 2012 03:11:25 -0700 (PDT)
In-Reply-To: <500A5199.7030705@it.aoyama.ac.jp>
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> <CAMHjJ=QNGKyjPToz-Z_HDcymWWvwRWCh0zTbu69tkzrn1V_Bww@mail.gmail.com> <500A5199.7030705@it.aoyama.ac.jp>
Date: Sat, 21 Jul 2012 06:11:25 -0400
X-Google-Sender-Auth: kDOg7x3UT4uDf1z5_EaQHCZ0W4M
Message-ID: <CANfjZH1p4XmFKqCEYWs9p+H_20iiqOmc0UjpWMJ-GqHiRO=Vsg@mail.gmail.com>
From: Eric Prud'hommeaux <eric@w3.org>
To: "Martin J. Dürst" <duerst@it.aoyama.ac.jp>
Content-Type: multipart/alternative; boundary="20cf3071c6444a216404c5543cab"
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: Sat, 21 Jul 2012 10:10:29 -0000
On Jul 21, 2012 8:53 AM, Martin J. Dürst <duerst@it.aoyama.ac.jp> wrote: > > On 2012/07/21 5:49, Jon Moore wrote: >> >> On Fri, Jul 20, 2012 at 2: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. >> >> >> No, the issue is that the patch file could have mixed charsets. If the >> change is 'convert README from iso-8859-1 to utf-8', then the patch >> file itself will have two character sets: >> >> 1. The lines that begin with '-' or ' ' will be iso-8859-1. >> 2. The lines that begin with '+' will be utf-8. >> >> Since these are incompatible charsets (neither is a superset of the >> other), we need two charset parameters to describe them, and this >> patch is not capable of being a text/* document. I'm open to other >> names besides 'source' and 'target', but I'm not sure how we get >> around having two of them for this case. > > > Just use application/patch. I don't think current diff programs are able to deal with character encoding parameters. I don't think people necessarily need to know the source/target encoding in the above example, unless something weird happens and they need to debug (in which case, they'll find out by themselves through trial and error anyway). > > I also don't think there is much of a use case for: > - Originator: Has files in Latin-1, makes a diff in that encoding, > sends to receiver. > - Receiver: Has files in UTF-8, wants to apply patch and wants a > conversion from Latin-1 to UTF-8 to happen automatically. I'm not saying that any conventional tools do this (though it would be nice for them to grow into this functionality), but as someone who manages public input on a fair number of docs, I receive a lot of 1252 or 8859 undermining my precious UTF-8 docs. If these are properly labeled, I can iconv them our pull them into emacs and transcode them before applying them.i expect that the burgeoning popularity of distributed version control will accentuate this need as people become more adept at managing diffs. > So I very much agree with Björn here. > > Regards, Martin. > > _______________________________________________ > ietf-types mailing list > ietf-types@ietf.org > https://www.ietf.org/mailman/listinfo/ietf-types
- [ietf-types] Status of application/patch or text/… Jon Moore
- Re: [ietf-types] Status of application/patch or t… Julian Reschke
- Re: [ietf-types] Status of application/patch or t… Jon Moore
- Re: [ietf-types] Status of application/patch or t… Simon Josefsson
- Re: [ietf-types] Status of application/patch or t… Jon Moore
- Re: [ietf-types] Status of application/patch or t… Simon Josefsson
- Re: [ietf-types] Status of application/patch or t… Steve Allen
- Re: [ietf-types] Status of application/patch or t… Julian Reschke
- Re: [ietf-types] Status of application/patch or t… Simon Josefsson
- Re: [ietf-types] Status of application/patch or t… Julian Reschke
- Re: [ietf-types] Status of application/patch or t… Bjoern Hoehrmann
- Re: [ietf-types] Status of application/patch or t… Julian Reschke
- Re: [ietf-types] Status of application/patch or t… Bjoern Hoehrmann
- Re: [ietf-types] Status of application/patch or t… Eric Prud'hommeaux
- Re: [ietf-types] Status of application/patch or t… Jon Moore
- Re: [ietf-types] Status of application/patch or t… Paul Libbrecht
- Re: [ietf-types] Status of application/patch or t… Eric Prud'hommeaux
- Re: [ietf-types] Status of application/patch or t… Jon Moore
- Re: [ietf-types] Status of application/patch or t… Paul Libbrecht
- Re: [ietf-types] Status of application/patch or t… Martin J. Dürst
- Re: [ietf-types] Status of application/patch or t… Eric Prud'hommeaux