Re: [PATCH v2] branch -v: align even when branch names are in UTF-8

2012-08-26 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > 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 length calculation just wrong. > > Update document to mention the fact that we may want ref names in > UTF-8.

[PATCH v2] branch -v: align even when branch names are in UTF-8

2012-08-25 Thread Nguyễn Thái Ngọc Duy
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 length calculation just wrong. Update document to mention the fact that we may want ref names in UTF-8. Encodings that produce invalid UTF-8 are