Files
git/Documentation
Nguyễn Thái Ngọc Duy 1452bd64f1 branch -v: align even when branch names are in UTF-8
Branch names are usually in ASCII so they are not the problem. The
problem most likely comes from "(no branch)" translation, which is
in UTF-8 and makes display-width calculation just wrong.  Clarify
this by renaming the field "len" in struct ref_item to "width", as
it stores the display-width and is used to compute the width of the
screen needed to show the names of all the branches, and compute the
display width using utf8_strwidth(), not byte-length with strlen().

Update document to mention the fact that we may want ref names in
UTF-8. Encodings that produce invalid UTF-8 are safe as utf8_strwidth()
falls back to strlen(). The ones that incidentally produce valid UTF-8
sequences will cause misalignment.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2012-08-27 11:42:28 -07:00
..
2012-03-28 08:47:23 -07:00
2012-08-24 12:33:31 -07:00
2012-06-19 11:35:19 -07:00
2012-04-20 15:49:16 -07:00
2012-05-03 15:13:31 -07:00
2012-06-19 11:35:19 -07:00
2012-08-06 15:34:20 -07:00
2012-05-07 13:28:34 -07:00
2012-08-06 15:34:20 -07:00
2012-08-15 13:39:53 -07:00
2012-06-19 11:35:19 -07:00
2012-06-08 08:32:20 -07:00
2012-08-06 15:34:20 -07:00