mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
Read additional bytes from the file to complete the UTF-8 sequence so the bytes in it don't get converted to U+FFFD replacement characters.
11 lines
210 B
Bash
Executable File
11 lines
210 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. "${0%/*}/setup" "$@"
|
|
|
|
if [ "`$VALGRIND $Q $JQ -nf $JQTESTDIR/utf8-truncate.jq`" != "true" ]; then
|
|
echo "UTF-8 byte sequences that span the jv_load_file read buffer are mangled"
|
|
exit 1
|
|
fi
|
|
|
|
exit 0
|