Ignore a UTF-8 BOM if one appears at the start of a JSON document.

Closes #45.
This commit is contained in:
Stephen Dolan committed 2012-12-02 23:53:55 +00:00
1 parent 5b45184a1a
commit 67f8ad9435
3 files changed
+28

No files matched your search

+7
View File
@@ -31,6 +31,13 @@ null
null
[]
# The input line starts with a 0xFEFF (byte order mark) codepoint
# No, there is no reason to have a byte order mark in UTF8 text.
# But apparently people do, so jq shouldn't break on it.
.
"byte order mark"
"byte order mark"
# We test escapes by matching them against Unicode codepoints
# FIXME: more tests needed for weird unicode stuff (e.g. utf16 pairs)
"Aa\r\n\t\b\f\u03bc"