]> diplodocus.org Git - nmh/commit
mhshow/test-charset: printf(1)'s octal doesn't need a leading zero.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 23 Sep 2017 13:14:12 +0000 (14:14 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 23 Sep 2017 13:14:12 +0000 (14:14 +0100)
commite88901284d9f76832b619ec0b7281f1163154588
tree261d70aaa287c171ca71a5c254dff8fad9979210
parent90edf2e26c34b9ee225cb066eed069b9b7394c43
mhshow/test-charset: printf(1)'s octal doesn't need a leading zero.

The `\0344' was being interpreted as `\034' and `4'.  This can still be
converted from EBCDIC-US to UTF-8 by iconv(1) so the test worked, but it
was misleading.  Remove the leading zero as printf's octal escape is
`\nnn' where nnn is one to three octal digits.  It's echo(1) that
insists on a leading zero.  Fixes 6fd1d18f.
test/mhshow/test-charset