[PATCH] doc: Document another portability problem of 'od'.

Bruno Haible <[email protected]> Tue, 29 Dec 2020 03:42:59 +0100
Newsgroups gmane.comp.sysutils.autoconf.patches
Message-ID <28234750.VKlEE0eefa@omega>
Here's a patch to mention a portability problems of 'od', that I noticed
during Gnulib work.
0001-doc-Document-another-portability-problem-of-od.patch (text/x-patch, 1.1 KB)
From 4ab7b8f2cd39ee22c17cd8a7b3030d1082e3167d Mon Sep 17 00:00:00 2001
From: Bruno Haible <[email protected]>
Date: Tue, 29 Dec 2020 03:38:31 +0100
Subject: [PATCH] doc: Document another portability problem of 'od'.

* doc/autoconf.texi (Limitations of Usual Tools): Document that decimal output
is not portable.
---
 doc/autoconf.texi | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index b1bd8be..e2b4b76 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -19782,6 +19782,24 @@ XSI options are those in @option{-bcdox}.  The BSD
 
 This problem no longer exists in Mac OS X 10.4.3.
 
+In Solaris 11 OpenIndiana and Solaris 11 OmniOS, @command{od} prints
+decimal byte values padded with zeroes rather than with spaces:
+
+@smallexample
+$ @kbd{printf '#!' | od -A n -t d1 -N 2}
+         035 033
+@end smallexample
+
+@noindent
+instead of
+
+@smallexample
+$ @kbd{printf '#!' | od -A n -t d1 -N 2}
+          35  33
+@end smallexample
+
+As a workaround, you can use octal output (option @code{-t o1}).
+
 
 @item @command{rm}
 @c ---------------
-- 
2.7.4