From 03ef3863734ec62f29b99205b717a826d6c76b00 Mon Sep 17 00:00:00 2001 From: Jan-Michael Brummer Date: Thu, 31 Dec 2020 15:47:00 +0100 Subject: parser: Ignore UTF-8 BOM if necessary According to JSON spec BOM shouldn't be part of the JSON data, but also recommends to tolerate files with a BOM marker. As this is common in several Windows JSON generators, handle it graceful in json-glib and skip it for UTF-8 BOM. Fixes: https://gitlab.gnome.org/GNOME/json-glib/-/issues/56 --- json-glib/tests/meson.build | 1 + 1 file changed, 1 insertion(+) (limited to 'json-glib/tests/meson.build') diff --git a/json-glib/tests/meson.build b/json-glib/tests/meson.build index 7fdbc3f..1eb56c8 100644 --- a/json-glib/tests/meson.build +++ b/json-glib/tests/meson.build @@ -17,6 +17,7 @@ tests = [ test_data = [ 'invalid.json', + 'skip-bom.json', 'stream-load.json', ] -- cgit v1.2.1