git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/7] Cure some format-patch wrapping and encoding issues
@ 2012-10-18 14:43 Jan H. Schönherr
  2012-10-18 14:43 ` [PATCH v2 1/7] utf8: fix off-by-one wrapping of text Jan H. Schönherr
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Jan H. Schönherr @ 2012-10-18 14:43 UTC (permalink / raw)
  To: git; +Cc: Jeff King, Junio C Hamano, Jan H. Schönherr

Hi all.

[This is the second version of this series. If you still remember
the first version, you might want to jump directly to the summary
of changes below.]

The main point of this series is to teach git to encode my name
correctly, see patches 5+6, so that the decoded version is actually
my name, so that send-email does not insist on adding a wrong
superfluous From: line to the mail body.

The other patches more mostly by-products that fix other issues
I came across.

Patch 1 fixes an old off-by-one error, so that wrapped text may
now use all available columns.

Patches 2 and 3 make the wrapping of header lines more correct,
i. e., neither too early nor too late.

Patch 4 does some refactoring, which is too unrelated to be included
in one of the later patches.

Patch 5 improves RFC 2047 encoding; patch 6 removes an old non-RFC
conform workaround.

Patch 7 is more an RFC, which seems to be a good idea from my point
of view. Indeed, I thought the current implementation is erroneous,
until Junio C Hamano pointed out, that this might be desired behavior.
Thus, make up your mind about this one.


The series is currently based on the maint branch, but it applies
to master as well. It does also apply to next, but then my
implementation of isprint() has to be dropped from patch 5.


Changes in v2:
- patch 1 is new and is a result of the v1 discussion
- patch 5+6 split the old patch 4 into two patches
- use of constants for maximum line lengths
- even better adherence to RFC 2047 than v1
- updated commit messages/comments


Regards
Jan

Jan H. Schönherr (7):
  utf8: fix off-by-one wrapping of text
  format-patch: do not wrap non-rfc2047 headers too early
  format-patch: do not wrap rfc2047 encoded headers too late
  format-patch: introduce helper function last_line_length()
  format-patch: make rfc2047 encoding more strict
  format-patch: fix rfc2047 address encoding with respect to rfc822
    specials
  format-patch tests: check quoting/encoding in To: and Cc: headers

 git-compat-util.h       |   2 +
 pretty.c                | 149 +++++++++++++++++++++++--------
 t/t4014-format-patch.sh | 231 ++++++++++++++++++++++++++++++------------------
 t/t4202-log.sh          |   4 +-
 utf8.c                  |   2 +-
 5 Dateien geändert, 262 Zeilen hinzugefügt(+), 126 Zeilen entfernt(-)

-- 
1.7.12

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-10-18 14:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-18 14:43 [PATCH v2 0/7] Cure some format-patch wrapping and encoding issues Jan H. Schönherr
2012-10-18 14:43 ` [PATCH v2 1/7] utf8: fix off-by-one wrapping of text Jan H. Schönherr
2012-10-18 14:43 ` [PATCH v2 2/7] format-patch: do not wrap non-rfc2047 headers too early Jan H. Schönherr
2012-10-18 14:43 ` [PATCH v2 3/7] format-patch: do not wrap rfc2047 encoded headers too late Jan H. Schönherr
2012-10-18 14:43 ` [PATCH v2 4/7] format-patch: introduce helper function last_line_length() Jan H. Schönherr
2012-10-18 14:43 ` [PATCH v2 5/7] format-patch: make rfc2047 encoding more strict Jan H. Schönherr
2012-10-18 14:43 ` [PATCH v2 6/7] format-patch: fix rfc2047 address encoding with respect to rfc822 specials Jan H. Schönherr
2012-10-18 14:43 ` [PATCH v2 7/7] format-patch tests: check quoting/encoding in To: and Cc: headers Jan H. Schönherr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).