Skip to content

Commit bf1db7d

Browse files
drafnelgitster
authored andcommitted
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>
1 parent e0d44c5 commit bf1db7d

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

t/t5100/rfc2047-samples.mbox

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
11
From nobody Mon Sep 17 00:00:00 2001
22
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==?=
77

88
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>
1010
To: ietf-822@dimacs.rutgers.edu, ojarnef@admin.kth.se
1111
Subject: Time for ISO 10646?
1212

1313
From nobody Mon Sep 17 00:00:00 2001
1414
To: Dave Crocker <dcrocker@mordor.stanford.edu>
1515
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>
1717
Subject: Re: RFC-HDR care and feeding
1818

1919
From nobody Mon Sep 17 00:00:00 2001
2020
From: Nathaniel Borenstein <nsb@thumper.bellcore.com>
21-
(=?iso-8859-8?b?7eXs+SDv4SDp7Oj08A==?=)
21+
(=?ISO8859-8?b?7eXs+SDv4SDp7Oj08A==?=)
2222
To: Greg Vaudreuil <gvaudre@NRI.Reston.VA.US>, Ned Freed
2323
<ned@innosoft.com>, Keith Moore <moore@cs.utk.edu>
2424
Subject: Test of new header generator
2525
MIME-Version: 1.0
26-
Content-type: text/plain; charset=ISO-8859-1
26+
Content-type: text/plain; charset=ISO8859-1
2727

2828
From nobody Mon Sep 17 00:00:00 2001
29-
Subject: (=?ISO-8859-1?Q?a?=)
29+
Subject: (=?ISO8859-1?Q?a?=)
3030

3131
From nobody Mon Sep 17 00:00:00 2001
32-
Subject: (=?ISO-8859-1?Q?a?= b)
32+
Subject: (=?ISO8859-1?Q?a?= b)
3333

3434
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?=)
3636

3737
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?=)
3939

4040
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?=)
4343

4444
From nobody Mon Sep 17 00:00:00 2001
45-
Subject: (=?ISO-8859-1?Q?a_b?=)
45+
Subject: (=?ISO8859-1?Q?a_b?=)
4646

4747
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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ index 9123cdc..918dcf8 100644
9999
From nobody Sat Aug 27 23:07:49 2005
100100
Path: news.gmane.org!not-for-mail
101101
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=?=
103103
<yoshfuji@linux-ipv6.org>
104104
Newsgroups: gmane.comp.version-control.git
105105
Subject: [PATCH 1/2] GIT: Try all addresses for given remote name
@@ -218,15 +218,15 @@ GPG-FP : 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA
218218
From nobody Sat Aug 27 23:07:49 2005
219219
Path: news.gmane.org!not-for-mail
220220
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>
222222
Newsgroups: gmane.comp.version-control.git
223223
Subject: [PATCH] Fixed two bugs in git-cvsimport-script.
224224
Date: Mon, 15 Aug 2005 20:18:25 +0200
225225
Lines: 83
226226
Approved: news@gmane.org
227227
NNTP-Posting-Host: main.gmane.org
228228
Mime-Version: 1.0
229-
Content-Type: text/plain; charset=iso-8859-1
229+
Content-Type: text/plain; charset=ISO8859-1
230230
Content-Transfer-Encoding: QUOTED-PRINTABLE
231231
X-Trace: sea.gmane.org 1124130247 31839 80.91.229.2 (15 Aug 2005 18:24:07 GMT)
232232
X-Complaints-To: usenet@sea.gmane.org
@@ -476,7 +476,7 @@ MIME-Version: 1.0
476476
Content-Type: multipart/mixed; boundary="=-=-="
477477
478478
--=-=-=
479-
Content-Type: text/plain; charset=iso-8859-15
479+
Content-Type: text/plain; charset=ISO8859-15
480480
Content-Transfer-Encoding: quoted-printable
481481
482482
Here comes a commit log message, and

0 commit comments

Comments
 (0)