Put a UTF-8 BOM in the middle of the test files, and some gitattribute
settings for working-tree-encoding. `ISO-8859-1' produces file
corruption. `UTF-16' produces an error since it doesn't specify BE or
LE, and the file lacks a BOM at the start.
Part of the fix to #901900. This introduces the desired test failure.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
printf >>af/$filename 'crlf: \r\n'
echo >>af/$filename 'id $Id: $'
echo >>af/$filename 'id $Id: SPLARK $'
printf >>af/$filename 'crlf: \r\n'
echo >>af/$filename 'id $Id: $'
echo >>af/$filename 'id $Id: SPLARK $'
+ printf >>af/$filename '\xEF\xBB\xBF <- UTF-8 BOM\n'
echo >>gitattrs "af/$filename" "$attrspec"
}
echo >>gitattrs "af/$filename" "$attrspec"
}
badattr export-subst
badattr delta
badattr encoding no-such-encoding
badattr export-subst
badattr delta
badattr encoding no-such-encoding
+badattr working-tree-encoding ISO-8859-1 UTF-16
man gitattributes \
| perl -ne 'print $1,"\n" if m/^ *(\w[-a-z]*)$/' \
man gitattributes \
| perl -ne 'print $1,"\n" if m/^ *(\w[-a-z]*)$/' \