Mercurial > hg
diff mercurial/match.py @ 13225:e3bf16703e26 stable 1.7.3
util: fix ellipsis() not to break multi-byte sequence (issue2564)
It tries to convert localstr to unicode before truncating.
Because we cannot assume that the given text is encoded in local encoding,
it falls back to raw string in case of unicode error.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 25 Dec 2010 21:59:00 +0900 |
parents | 83aaeba32b88 |
children | 1f4721de2ca9 |