diff options
author | Doan Tran Cong Danh <congdanhqx@gmail.com> | 2019-11-07 09:56:12 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-11-07 15:13:54 +0900 |
commit | 99b2ba35f5a67dd6308b265a8e4c3a92e2e67221 (patch) | |
tree | af2b822312472efcb169cddb4d3ab3e9260dae55 /Documentation/diff-generate-patch.txt | |
parent | Git 2.24 (diff) | |
download | tgif-99b2ba35f5a67dd6308b265a8e4c3a92e2e67221.tar.xz |
t0028: eliminate non-standard usage of printf
man 1p printf:
In addition to the escape sequences shown in the Base Definitions
volume of POSIX.1‐2008, Chapter 5, File Format Notation ('\\',
'\a', '\b', '\f', '\n', '\r', '\t', '\v'), "\ddd", where ddd is a
one, two, or three-digit octal number, shall be written as a byte
with the numeric value specified by the octal number.
printf '\xfe\xff' is an extension of some shell.
Dash, a popular yet simple shell, do not implement this extension.
This wasn't caught by most people running the tests, even though
common shells like dash don't handle hex escapes, because their
systems don't trigger the NO_UTF16_BOM prereq. But systems with musl
libc do; when combined with dash, the test fails.
Correct it.
Signed-off-by: Doan Tran Cong Danh <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/diff-generate-patch.txt')
0 files changed, 0 insertions, 0 deletions