summaryrefslogtreecommitdiff
path: root/t/t4025-hunk-header.sh
AgeCommit message (Collapse)AuthorFilesLines
2008-01-06diff: do not chomp hunk-header in the middle of a characterLibravatar Junio C Hamano1-0/+44
We truncate hunk-header line at 80 bytes, but that 80th byte could be in the middle of a character, which is bad. This uses pick_one_utf8_char() function to make sure we do not cut a character in the middle. This assumes that the internal representation of the text is UTF-8. This needs to be extended in the future but the optimal direction has not been decided yet. Signed-off-by: Junio C Hamano <gitster@pobox.com>