bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #62357] [build] tests using "locale charmap" skipped on macOS


From: G. Branden Robinson
Subject: [bug #62357] [build] tests using "locale charmap" skipped on macOS
Date: Fri, 20 May 2022 01:31:47 -0400 (EDT)

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

Nope, I'm wrong.

In the test, I'm using "od -t c", not "od -c".  The GNU od(1) man pages says
these are the synonymous...

>        -c     same as -t c,  select printable characters or backslash
escapes

...but they're not supposed to be.  Its GNU Info node 


info '(coreutils) od invocation'


makes the same claim.  So it is apparently GNU that is out of POSIX
conformance here.  Here's what Issue 8 says about "od -t c".

> The type specifier character c specifies that bytes shall be interpreted as
characters specified by the current setting of the LC_CTYPE locale category.
Characters listed in the table in XBD File Format Notation ( '\\', '\a', '\b',
'\f', '\n', '\r', '\t', '\v' ) shall be written as the corresponding escape
sequences, except that <backslash> shall be written as a single <backslash>
and a NUL shall be written as '\0'. Other non-printable characters shall be
written as one three-digit octal number for each byte in the character.
Printable multi-byte characters shall be written in the area corresponding to
the first byte of the character; the two-character sequence "**" shall be
written in the area corresponding to each remaining byte in the character, as
an indication that the character is continued. When either the -j skip or -N
count option is specified along with the c type specifier, and this results in
an attempt to start or finish in the middle of a multi-byte character, the
result is implementation-defined.

After giving BSD/Apple partisans a moment to ventilate their indignation at my
error, it seems I must use "od -c" after all, not the "synonym" (sic) "od -t
-c".

So that's what I'll do.  A bug report against GNU coreutils might also be in
order.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]