diff options
author | Kevin Daudt <me@ikke.info> | 2019-02-11 22:38:18 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-02-11 14:46:36 -0800 |
commit | 99e9ab54aba21b8fa368f20e6b3585d95b1c4d37 (patch) | |
tree | d4029e5af1e692e576ed616e6b9c3f80fbbab895 /notes-cache.h | |
parent | Git 2.18.1 (diff) | |
download | tgif-99e9ab54aba21b8fa368f20e6b3585d95b1c4d37.tar.xz |
t0028: fix wrong octal values for BOM in setup
The setup code uses octal values with printf to generate a BOM for
UTF-16/32 BE/LE. It specifically uses '\777' to emit a 0xff byte. This
relies on the fact that most shells truncate the value above 0o377.
Ash however interprets '\777' as '\77' + a literal '7', resulting in an
invalid BOM.
Fix this by using the proper value of 0xff: '\377'.
Signed-off-by: Kevin Daudt <me@ikke.info>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'notes-cache.h')
0 files changed, 0 insertions, 0 deletions