[PATCH 2/2] pretty.c: format string with truncate respects logOutputEncoding

2014-05-16 Thread Alexey Shumkin
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. In

Re: [PATCH 2/2] pretty.c: format string with truncate respects logOutputEncoding

2014-05-16 Thread Duy Nguyen
And I thought I was the only one using this :) diff --git a/pretty.c b/pretty.c index 6e266dd..7eb43c1 100644 --- a/pretty.c +++ b/pretty.c @@ -1500,16 +1500,19 @@ void format_commit_message(const struct commit *commit, const struct pretty_print_context