Fixed: [JSON backslash string decoding/encoding not correct](https://github.com/clicon/clixon/issues/453)

Added unicode BMP support for JSON strings
Test: encoding/decoding tests for UTF-8
This commit is contained in:
Olof hagsand 2023-09-19 12:28:58 +02:00
parent 1a43a32770
commit 45f41e3e4d
12 changed files with 254 additions and 35 deletions

View file

@ -297,6 +297,7 @@ pipe_showas_fn(clicon_handle h,
switch (format){
case FORMAT_CLI:
case FORMAT_TEXT:
case FORMAT_JSON:
/* Requires binding. Note binding over mountpoints can cause rpc: extra latency */
if ((ret = xml_bind_yang(h, xt, YB_MODULE, yspec, &xerr)) < 0)
goto done;