t4205, t6006: add tests that fail with i18n.logOutputEncoding set
commitd928d81051fc8475c7845526b255cb8e80b39f12
authorAlexey Shumkin <alex.crezoff@gmail.com>
Wed, 21 May 2014 13:20:06 +0000 (21 17:20 +0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 May 2014 18:11:50 +0000 (21 11:11 -0700)
tree337c5c9cd5ec7c80fae04d71c397579062904e2b
parentc82134a9f39427139a26cd67b7c2fd13b2e8c357
t4205, t6006: add tests that fail with i18n.logOutputEncoding set

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.

There were no breakages as far as were no tests for the case
when both a commit message and logOutputEncoding are not UTF-8.

Add failing tests for that which will be fixed in the next patch.

Signed-off-by: Alexey Shumkin <Alex.Crezoff@gmail.com>
Helped-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Helped-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4205-log-pretty-formats.sh
t/t6006-rev-list-format.sh