|
From: | Eric Blake |
Subject: | Re: [Qemu-devel] [PATCH v2 60/60] json: Support %% in JSON strings when interpolating |
Date: | Fri, 17 Aug 2018 13:18:24 -0500 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
On 08/17/2018 10:05 AM, Markus Armbruster wrote:
The previous commit makes JSON strings containing '%' awkward to express in templates: you'd have to mask the '%' with an Unicode
s/an Unicode/a Unicode/
escape \u0025. No template currently contains such JSON strings. Support the printf conversion specification %% in JSON strings as a convenience anyway, because it's trivially easy to do. Signed-off-by: Markus Armbruster <address@hidden> --- qobject/json-parser.c | 3 ++- tests/check-qjson.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-)
Reviewed-by: Eric Blake <address@hidden> -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
[Prev in Thread] | Current Thread | [Next in Thread] |