pylightning: make sure UTF-8 gets passed intact.

1. We need to read in as a byte string, then decode into utf8 once we
   have a marker.  Otherwise we seem to mangle it horribly, and we
   might have a bad utf8 string anyway.

2. We need to suppress the JSON \u escapes on output.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-03-04 13:30:35 +10:30
committed by Christian Decker
parent 5f437de771
commit cc342fda83
2 changed files with 8 additions and 7 deletions

View File

@@ -190,7 +190,6 @@ def test_async_rpcmethod(node_factory, executor):
assert [r.result() for r in results] == [42] * len(results)
@pytest.mark.xfail(strict=True)
def test_utf8_passthrough(node_factory, executor):
l1 = node_factory.get_node(options={'plugin': 'tests/plugins/utf8.py',
'log-level': 'io'})