Mercurial > hg
comparison tests/test-subrepo-deep-nested-change.t @ 26856:baa77652be68 stable
templatefilters: try round-trip utf-8 conversion by json filter (issue4933)
As JSON string is known to be a unicode, we should try round-trip conversion
for localstr type. This patch tests localstr type explicitly because
encoding.fromlocal() may raise Abort for undecodable str, which is probably
not what we want. Maybe we can refactor json filter to use encoding module
more later.
Still "{desc|json}" can't round-trip because showdescription() modifies a
localstr object.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 04 Nov 2015 23:48:15 +0900 |
parents | 4b0fc75f9403 |
children | 0707bbec682d 97175d9bf7cf |
comparison
equal
deleted
inserted
replaced
26855:9350f00a7b23 | 26856:baa77652be68 |
---|