[PATCH STABLE] templatefilters: try round-trip utf-8 conversion by json filter (issue4933)
Matt Mackall
mpm at selenic.com
Wed Nov 4 14:03:24 CST 2015
On Thu, 2015-11-05 at 00:29 +0900, Yuya Nishihara wrote:
> # HG changeset patch
> # User Yuya Nishihara <yuya at tcha.org>
> # Date 1446648495 -32400
> # Wed Nov 04 23:48:15 2015 +0900
> # Branch stable
> # Node ID 26bb878bb7fafdb208c7279da22ee415212b4dc6
> # Parent 58b7f3e93bbab749ab16c09df12aae5ba7880708
> templatefilters: try round-trip utf-8 conversion by json filter
> (issue4933)
Queued for stable, thanks.
> +json filter should not abort if it can't decode bytes:
> +(not sure the current behavior is right; we might want to use utf-8b
> encoding?)
> +
> + $ HGENCODING=ascii hg log -T "{'`cat utf-8`'|json}\n" -l1
> + "\ufffd\ufffd"
Yep.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list