]> granicus.if.org Git - check/commit
Use only POSIX conforming features of printf
authorGeorg Sauthoff <mail@georg.so>
Tue, 29 Dec 2015 17:10:52 +0000 (18:10 +0100)
committerGeorg Sauthoff <mail@georg.so>
Tue, 29 Dec 2015 17:10:52 +0000 (18:10 +0100)
commitb6bd6753f8ab00dfeb99900cbdad9df41b71736a
tree88d2b7fa35dd55795d8cf6a9dd24831f1756adeb
parenteb0e84bc07d9dc7ee4d7abe44086de8fc1e6748d
Use only POSIX conforming features of printf

This fixes 3 test failures on Solaris 10.

POSIX standardized printf, but the hex style \xHH sequences
aren't included in the standard. POSIX printf does understand
octal style \NNN sequences, though.

This should also work with shells where printf is a builtin (e.g.
on Lubuntu which probably uses dash).

Tested with xpg4-sh on Solaris 10 and bash/zsh/dash on Linux.
tests/test_output_strings