New upstream version 1.9
[debian/gzip] / tests / init.cfg
1 # This file is sourced by init.sh, *before* its initialization.
2
3 # This goes hand in hand with the "exec 9>&2;" in Makefile.am's
4 # TESTS_ENVIRONMENT definition.
5 stderr_fileno_=9
6
7 # Like printf with a single argument, but that argument must be a
8 # sequence of four-byte strings \xHH where each H is a hexadecimal byte.
9 hex_printf_()
10 {
11   local octal_fmt=$(printf '\\%o' \
12     $(printf '%s\n' "$1" \
13       | sed 's,\\x\([0-9abcdefABCDEF][0-9abcdefABCDEF]\), 0x\1,g'))
14   printf "$octal_fmt"
15 }