Skip to content

Pretty print truncate does not work

Alexey Shumkin git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2t4205 (log-pretty-formats): Add failing tests for the case when i18n.logOutputEncoding is sett/t4205-log-pretty-formats.sh+169 -00 replies
2/2pretty.c: format string with truncate respects logOutputEncodingpretty.c t/t4205-log-pretty-formats.sh+9 -622 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchNguyễn Thái Ngọc DuyRamsay Jones
1/2
2/2R-b R-b R-b R-b R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] Pretty print truncate does not work

Pretty format string %<(N,[ml]trunc)>%s truncates subject to a given length with an appropriate padding. This works for non-ASCII texts when i18n.logOutputEncoding is UTF-8 only (independently of a printed commit message encoding) but does not work when i18n.logOutputEncoding is NOT UTF-8.

Following patches are:
1. failing tests
2. Fix patch

Alexey Shumkin (2):
t4205 (log-pretty-formats): Add failing tests for the case when
i18n.logOutputEncoding is set
pretty.c: format string with truncate respects logOutputEncoding

 pretty.c                      |   7 +-
 t/t4205-log-pretty-formats.sh | 169 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 174 insertions(+), 2 deletions(-)
Signature · 1 line
1.9.2-15