#1074132 coreutils: ptx layout completely broken depending on input data?

Package:
coreutils
Source:
coreutils
Description:
GNU core utilities
Submitter:
наб
Date:
2024-06-23 15:09:06 UTC
Severity:
normal
#1074132#5
Date:
2024-06-23 15:06:59 UTC
From:
To:
Dear Maintainer,

Compare:
$ ptx -i <(echo ‒; echo -; echo z; cat /usr/share/groff/current/eign) -f -b <(echo '       ') -w 40  <(sed -e 's/.*  //' -e 's/‒/-/g' b)
    /merge or filter   adjacent identical/
      - execute with   alternate/   /chroot
        /information   arch - get system/
             /output   arguments/
     z z z z z z z z   b     /z z z z z z z
    /- configure I/O   buffers chroot -/
         /character,   byte, and line/
         /character,   byte, and line/
      /- line, word,   character, byte,/
     /- qline, word,   character, byte,/
        /I/O buffers   chroot - execute/
        /libstdbuf -   configure I/O/
        /state yes -   continually output/
    /and line length   count wc - qline,/
    /and line length   count who - list/
           /chroot -   execute with/
    /unlink - remove   file link wc -/
     /with alternate   filesystem root z/
    /uniq - merge or   filter adjacent/
        /- configure   I/O buffers chroot/
    /filter adjacent   identical lines/
       /- get system   information arch -/
       /- get system   information uniq -/
     /byte, and line   length count wc -/
     /byte, and line   length count who -/
          /arguments   libstdbuf -/
   wc/    /byte, and   line length count
          /byte, and   line length count/
     /file link wc -   line, word,/
          /identical   lines unlink -/
      /- remove file   link wc - line,/
        /count who -   list login and/
      /state users -   list login and/
         /who - list   login and system/
       /users - list   login and system/
   system/             machine - get
             /uniq -   merge or filter/
      /- continually   output arguments/
         /count wc -   qline, word,/
     /lines unlink -   remove file link/
   z/    /filesystem   root z z z z z z z
       machine - get   system information/
         /arch - get   system information/
     /list login and   system state users/
     /list login and   system state yes -/
        /information   uniq - merge or/
    /identical lines   unlink - remove/
       /system state   users - list login/
          /file link   wc - line, word,/
       /length count   wc - qline, word,/
    /link wc - line,   word, character,/
        /wc - qline,   word, character,/
       /system state   yes - continually/

With:
$ ptx -i <(echo ‒; echo -; echo z; cat /usr/share/groff/current/eign) -f -b <(echo '       ') -w 40  <(sed -e 's/.*  //'  b)
    /merge or filter   adjacent identical/
        execute with   alternate/      /‒
        /information   arch ‒ get/
             /output   arguments/
     z z z z z z z z   b     /z z z z z z z
      /configure I/O   buffers chroot ‒/
         /character,   byte, and line/
         /character,   byte, and line/
    /‒ line, word,   character, byte,/
       /qline, word,   character, byte,/
        /I/O buffers   chroot ‒ execute/
      /libstdbuf ‒   configure I/O/
      /state yes ‒   continually output/
    /and line length   count wc ‒/
    /and line length   count who ‒ list/
         /chroot ‒   execute with/
         /‒ remove   file link wc ‒/
     /with alternate   filesystem root z/
       /‒ merge or   filter adjacent/
      /‒ configure   I/O buffers chroot/
    /filter adjacent   identical lines/
     /‒ get system   information arch/
     /‒ get system   information uniq/
     /byte, and line   length count wc/
     /byte, and line   length count who/
          /arguments   libstdbuf ‒/
   wc/    /byte, and   line length count
          /byte, and   line length count/
         link wc ‒   line, word,/   /file
          /identical   lines unlink ‒/
    /‒ remove file   link wc ‒ line,/
      /count who ‒   list login and/
    /state users ‒   list login and/
       /who ‒ list   login and system/
     /users ‒ list   login and system/
   system/             machine ‒ get
           /uniq ‒   merge or filter/
    /‒ continually   output arguments/
       /count wc ‒   qline, word,/
         /unlink ‒   remove file link/
   z/    /filesystem   root z z z z z z z
     machine ‒ get   system information/
       /arch ‒ get   system information/
     /list login and   system state users/
     /list login and   system state yes/
        /information   uniq ‒ merge or/
    /identical lines   unlink ‒ remove/
       /system state   users ‒ list/
          /file link   wc ‒ line, word,/
       /length count   wc ‒ qline,/
       /wc ‒ line,   word, character,/
      /wc ‒ qline,   word, character,/
        system state   yes ‒/        /and

b attached; eign from bookworm

Best,