author | Yuya Nishihara <yuya@tcha.org> |
Sun, 03 Sep 2017 15:42:27 +0900 | |
changeset 34135 | e9e225f16932 |
parent 34134 | d4d4d11bac77 |
child 34136 | 414a3513c2bd |
--- a/mercurial/encoding.py Sun Sep 03 14:38:58 2017 +0900 +++ b/mercurial/encoding.py Sun Sep 03 15:42:27 2017 +0900 @@ -268,7 +268,7 @@ >>> print trim(t, 1, ellipsis=ellipsis) + >>> u = u'\u3042\u3044\u3046\u3048\u304a' # 2 x 5 = 10 columns - >>> t = u.encode(encoding.encoding) + >>> t = u.encode(pycompat.sysstr(encoding.encoding)) >>> print trim(t, 12, ellipsis=ellipsis) \xe3\x81\x82\xe3\x81\x84\xe3\x81\x86\xe3\x81\x88\xe3\x81\x8a >>> print trim(t, 10, ellipsis=ellipsis)