Follow-up Comment #12, bug #62357 (project groff):

Aha.  macOS *is out of conformance with POSIX*!  <thunder, rage>


-c
    [XSI] Interpret bytes as characters specified by the current setting of
the LC_CTYPE category. Certain non-graphic characters appear as C escapes:
"NUL=\0", "BS=\b", "FF=\f", "NL=\n", "CR=\r", "HT=\t"; others appear as
3-digit octal numbers.


https://pubs.opengroup.org/onlinepubs/9699919799/utilities/od.html

"... *others appear as 3-digit octal numbers* "

But since I don't expect Apple to ever change this--they're Apple--I guess
I'll have to go with the "od -b" approach.

(Incidentally, I said in comment #11 that GNU coreutils od output "spaces" for
non-printable characters.  That was incorrect, as my own sample output showed.
 My eyes had apparently glazed over.)


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62357>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/


Reply via email to