[igt-dev] [PATCH i-g-t 1/2] runner: Ensure generated json is properly UTF8-encoded

Arkadiusz Hiler arkadiusz.hiler at intel.com
Fri Jan 10 11:18:57 UTC 2020


On Thu, Dec 05, 2019 at 03:02:45PM +0200, Petri Latvala wrote:
> Sometimes tests output garbage (e.g. due to extreme occurrences of
> https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/55) but we
> need to present the garbage as results.
> 
> We already ignore any test output after the first \0, and for the rest
> of the bytes that are not directly UTF-8 as-is, we can quite easily
> represent them with two-byte UTF-8 encoding.
> 
> libjson-c already expects the string you feed it through
> json_object_new_string* functions to be UTF-8.
> 
> Signed-off-by: Petri Latvala <petri.latvala at intel.com>
> Cc: Arkadiusz Hiler <arkadiusz.hiler at intel.com>

the series is:
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler at intel.com>

Added this series as an example here:
https://gitlab.freedesktop.org/patchwork-fdo/patchwork-fdo/issues/34


More information about the igt-dev mailing list