Mercurial > public > mercurial-scm > hg-stable
diff tests/test-churn.t @ 21163:9846b40d01e7 stable
churn: compute padding with unicode strings
Most UTF-8 aware terminals convert multibyte sequences into a single displayed
characters. Because the first column is padded by counting bytes, the second
column is not perfectly aligned in the presence of non ASCII characters.
author | Isaac Jurado <diptongo@gmail.com> |
---|---|
date | Sat, 19 Apr 2014 15:11:25 +0200 |
parents | 2150e70c0ee1 |
children | 73b3218bb078 |
line wrap: on
line diff
--- a/tests/test-churn.t Thu Apr 17 19:39:04 2014 -0400 +++ b/tests/test-churn.t Sat Apr 19 15:11:25 2014 +0200 @@ -159,4 +159,16 @@ user4@x.com 2 ***************************** with space 1 ************** +Test multibyte sequences in names + + $ echo bar >> bar + $ hg --encoding utf-8 ci -m'changed bar' -u 'El NiƱo <nino@x.com>' + $ hg --encoding utf-8 churn -ct '{author|person}' + user1 4 ********************************************************** + user3 3 ******************************************** + user2 2 ***************************** + user4 2 ***************************** + El Ni\xc3\xb1o 1 *************** (esc) + with space 1 *************** + $ cd ..