diff options
author | Geoffrey Thomas <geofft@mit.edu> | 2009-01-30 04:41:29 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-02-04 16:30:45 -0800 |
commit | ffaf9cc0ff0692a0b60cdf1b62e8375706b7865d (patch) | |
tree | 75d149e32e00203614f2395bd76559928861bde1 /t/t5100/info0009 | |
parent | utf8: add utf8_strwidth() (diff) | |
download | tgif-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 't/t5100/info0009')
0 files changed, 0 insertions, 0 deletions