summaryrefslogtreecommitdiff
path: root/builtin-tar-tree.c
diff options
context:
space:
mode:
authorLibravatar Geoffrey Thomas <geofft@mit.edu>2009-01-30 04:41:29 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-02-04 16:30:45 -0800
commitffaf9cc0ff0692a0b60cdf1b62e8375706b7865d (patch)
tree75d149e32e00203614f2395bd76559928861bde1 /builtin-tar-tree.c
parentutf8: add utf8_strwidth() (diff)
downloadtgif-ffaf9cc0ff0692a0b60cdf1b62e8375706b7865d.tar.xz
builtin-blame.c: Use utf8_strwidth for author's names
git blame misaligns output if a author's name has a differing display width and strlen; for instance, an accented Latin letter that takes two bytes to encode will cause the rest of the line to be shifted to the left by one. To fix this, use utf8_strwidth instead of strlen (and compute the padding ourselves, since printf doesn't know about UTF-8). Signed-off-by: Geoffrey Thomas <geofft@mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-tar-tree.c')
0 files changed, 0 insertions, 0 deletions