@matheusbsbs / matheus-bagliano / commits / bf1db7dba5
Fork 0

t5100: use ancient encoding syntax for backwards compatibility

Some ancient platforms do not have an extensive list of alternate names for character encodings. For example, Solaris 7 does not know that ISO-8859-1 is the same as ISO8859-1. Modern platforms do know this, so use the older names. The following conversions were performed: ISO-8859-1 --> ISO8859-1 ISO-8859-2 --> ISO8859-2 ISO-8859-8 --> ISO8859-8 iso-2022-jp --> ISO-2022-JP Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Brandon Casey committed May 18, 2009 at 18:44 UTC bf1db7dba50205905cb27ff73586ae3a44b89bca
2 files changed +20 -20
t/t5100/rfc2047-samples.mbox
+16 -16
@@ -1,48 +1,48 @@
1 From nobody Mon Sep 17 00:00:00 2001
2 From: =?US-ASCII?Q?Keith_Moore?= <moore@cs.utk.edu>
3 -To: =?ISO-8859-1?Q?Keld_J=F8rn_Simonsen?= <keld@dkuug.dk>
4 -CC: =?ISO-8859-1?Q?Andr=E9?= Pirard <PIRARD@vm1.ulg.ac.be>
5 -Subject: =?ISO-8859-1?B?SWYgeW91IGNhbiByZWFkIHRoaXMgeW8=?=
6 - =?ISO-8859-2?B?dSB1bmRlcnN0YW5kIHRoZSBleGFtcGxlLg==?=
3 +To: =?ISO8859-1?Q?Keld_J=F8rn_Simonsen?= <keld@dkuug.dk>
4 +CC: =?ISO8859-1?Q?Andr=E9?= Pirard <PIRARD@vm1.ulg.ac.be>
5 +Subject: =?ISO8859-1?B?SWYgeW91IGNhbiByZWFkIHRoaXMgeW8=?=
6 + =?ISO8859-2?B?dSB1bmRlcnN0YW5kIHRoZSBleGFtcGxlLg==?=
7
8 From nobody Mon Sep 17 00:00:00 2001
9 -From: =?ISO-8859-1?Q?Olle_J=E4rnefors?= <ojarnef@admin.kth.se>
9 +From: =?ISO8859-1?Q?Olle_J=E4rnefors?= <ojarnef@admin.kth.se>
10 To: ietf-822@dimacs.rutgers.edu, ojarnef@admin.kth.se
11 Subject: Time for ISO 10646?
12
13 From nobody Mon Sep 17 00:00:00 2001
14 To: Dave Crocker <dcrocker@mordor.stanford.edu>
15 Cc: ietf-822@dimacs.rutgers.edu, paf@comsol.se
16 -From: =?ISO-8859-1?Q?Patrik_F=E4ltstr=F6m?= <paf@nada.kth.se>
16 +From: =?ISO8859-1?Q?Patrik_F=E4ltstr=F6m?= <paf@nada.kth.se>
17 Subject: Re: RFC-HDR care and feeding
18
19 From nobody Mon Sep 17 00:00:00 2001
20 From: Nathaniel Borenstein <nsb@thumper.bellcore.com>
21 - (=?iso-8859-8?b?7eXs+SDv4SDp7Oj08A==?=)
21 + (=?ISO8859-8?b?7eXs+SDv4SDp7Oj08A==?=)
22 To: Greg Vaudreuil <gvaudre@NRI.Reston.VA.US>, Ned Freed
23 <ned@innosoft.com>, Keith Moore <moore@cs.utk.edu>
24 Subject: Test of new header generator
25 MIME-Version: 1.0
26 -Content-type: text/plain; charset=ISO-8859-1
26 +Content-type: text/plain; charset=ISO8859-1
27
28 From nobody Mon Sep 17 00:00:00 2001
29 -Subject: (=?ISO-8859-1?Q?a?=)
29 +Subject: (=?ISO8859-1?Q?a?=)
30
31 From nobody Mon Sep 17 00:00:00 2001
32 -Subject: (=?ISO-8859-1?Q?a?= b)
32 +Subject: (=?ISO8859-1?Q?a?= b)
33
34 From nobody Mon Sep 17 00:00:00 2001
35 -Subject: (=?ISO-8859-1?Q?a?= =?ISO-8859-1?Q?b?=)
35 +Subject: (=?ISO8859-1?Q?a?= =?ISO8859-1?Q?b?=)
36
37 From nobody Mon Sep 17 00:00:00 2001
38 -Subject: (=?ISO-8859-1?Q?a?= =?ISO-8859-1?Q?b?=)
38 +Subject: (=?ISO8859-1?Q?a?= =?ISO8859-1?Q?b?=)
39
40 From nobody Mon Sep 17 00:00:00 2001
41 -Subject: (=?ISO-8859-1?Q?a?=
42 - =?ISO-8859-1?Q?b?=)
41 +Subject: (=?ISO8859-1?Q?a?=
42 + =?ISO8859-1?Q?b?=)
43
44 From nobody Mon Sep 17 00:00:00 2001
45 -Subject: (=?ISO-8859-1?Q?a_b?=)
45 +Subject: (=?ISO8859-1?Q?a_b?=)
46
47 From nobody Mon Sep 17 00:00:00 2001
48 -Subject: (=?ISO-8859-1?Q?a?= =?ISO-8859-2?Q?_b?=)
48 +Subject: (=?ISO8859-1?Q?a?= =?ISO8859-2?Q?_b?=)
t/t5100/sample.mbox
+4 -4
@@ -99,7 +99,7 @@ index 9123cdc..918dcf8 100644
99 From nobody Sat Aug 27 23:07:49 2005
100 Path: news.gmane.org!not-for-mail
101 Message-ID: <20050721.091036.01119516.yoshfuji@linux-ipv6.org>
102 -From: YOSHIFUJI Hideaki / =?iso-2022-jp?B?GyRCNUhGIzFRTEAbKEI=?=
102 +From: YOSHIFUJI Hideaki / =?ISO-2022-JP?B?GyRCNUhGIzFRTEAbKEI=?=
103 <yoshfuji@linux-ipv6.org>
104 Newsgroups: gmane.comp.version-control.git
105 Subject: [PATCH 1/2] GIT: Try all addresses for given remote name
@@ -218,7 +218,7 @@ GPG-FP : 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA
218 From nobody Sat Aug 27 23:07:49 2005
219 Path: news.gmane.org!not-for-mail
220 Message-ID: <u5tacjjdpxq.fsf@lysator.liu.se>
221 -From: =?iso-8859-1?Q?David_K=E5gedal?= <davidk@lysator.liu.se>
221 +From: =?ISO8859-1?Q?David_K=E5gedal?= <davidk@lysator.liu.se>
222 Newsgroups: gmane.comp.version-control.git
223 Subject: [PATCH] Fixed two bugs in git-cvsimport-script.
224 Date: Mon, 15 Aug 2005 20:18:25 +0200
@@ -226,7 +226,7 @@ Lines: 83
226 Approved: news@gmane.org
227 NNTP-Posting-Host: main.gmane.org
228 Mime-Version: 1.0
229 -Content-Type: text/plain; charset=iso-8859-1
229 +Content-Type: text/plain; charset=ISO8859-1
230 Content-Transfer-Encoding: QUOTED-PRINTABLE
231 X-Trace: sea.gmane.org 1124130247 31839 80.91.229.2 (15 Aug 2005 18:24:07 GMT)
232 X-Complaints-To: usenet@sea.gmane.org
@@ -476,7 +476,7 @@ MIME-Version: 1.0
476 Content-Type: multipart/mixed; boundary="=-=-="
477
478 --=-=-=
479 -Content-Type: text/plain; charset=iso-8859-15
479 +Content-Type: text/plain; charset=ISO8859-15
480 Content-Transfer-Encoding: quoted-printable
481
482 Here comes a commit log message, and