bugGNU roff - Bugs: bug #55299, "groff -v -e -s -t"...

 
 

bug #55299: "groff -v -e -s -t" produces garbled output on MS Windows

Submitter:  Eli Zaretskii <eliz>
Submitted:  Thu 27 Dec 2018 05:15:44 PM UTC
   
 
Category:  Core Severity:  3 - Normal
Item Group:  Incorrect behaviour Status:  Invalid
Privacy:  Public Assigned to:  gbranden
Open/Closed:  Closed Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Fri 31 Mar 2023 10:09:23 AM UTC, comment #6: 

Thanks to the anonymous clarifier for the the clarification!

Resolving as invalid.

Dropping patch annotation from invalid ticket.

G. Branden Robinson <gbranden>
Group administrator
Fri 31 Mar 2023 04:35:45 AM UTC, comment #5: 

Cygwin works as expected:

$ groff -v -e -s -t
GNU groff version 1.22.4
Copyright (C) 2018 Free Software Foundation, Inc.
GNU groff comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of groff and its subprograms
under the terms of the GNU General Public License.
For more information about these matters, see the file
named COPYING.

called subprograms:

GNU soelim (groff) version 1.22.4
GNU tbl (groff) version 1.22.4
GNU eqn (groff) version 1.22.4
GNU troff (groff) version 1.22.4
GNU grops (groff) version 1.22.4


Anonymous
Fri 31 Mar 2023 03:28:04 AM UTC, comment #4: 

I maintain help2man and man-pages-{linux,posix} and some other stuff, Achim Gratz maintains groff, man-db, autotools, binutils, libtool, pkgconf, compressors, archivers, most perl..., and lots of good stuff!
No Cygwin problems with latest groff 1.22.4.
No patches with minimal build changes except parallel make issues with latest make - Cygwin cygport build control script definitions are based on Gentoo portage ebuilds:

        groff.cygport

$ groff -v
GNU groff version 1.22.4
Copyright (C) 2018 Free Software Foundation, Inc.
GNU groff comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of groff and its subprograms
under the terms of the GNU General Public License.
For more information about these matters, see the file
named COPYING.

called subprograms:

GNU troff (groff) version 1.22.4
GNU grops (groff) version 1.22.4
$ groff -vV
GNU groff version 1.22.4
Copyright (C) 2018 Free Software Foundation, Inc.
GNU groff comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of groff and its subprograms
under the terms of the GNU General Public License.
For more information about these matters, see the file
named COPYING.

called subprograms:

troff -v -Tps | grops -v
$ groff -V
troff -Tps | grops


Anonymous
Thu 30 Mar 2023 11:07:30 PM UTC, comment #3: 

Adding CC of Brian Inglis, who now takes care of groff for Cygwin.

Brian, can you comment on this issue?

G. Branden Robinson <gbranden>
Group administrator
Wed 21 Oct 2020 02:19:01 PM UTC, comment #2: 

You mean, someone other than myself?  Because I already tested the patch (and in fact it's included in the port of Groff available from the ezwinports site).

If you have a different fix in mind, can you tell the details, or show the patch?

Thanks

Eli Zaretskii <eliz>
Wed 21 Oct 2020 07:20:53 AM UTC, comment #1: 

Do we have someone with access to a Windows machine to test this on?

Eli filed it almost immediately after the previous release; it'd be nice to do something about it before the next one.

G. Branden Robinson <gbranden>
Group administrator
Thu 27 Dec 2018 05:15:44 PM UTC, original submission:  

Invoking "groff -v" with several preprocessor switches produces garbled output on MS-Windows, like this:

     d:\usr>groff --version
     GNU groff version 1.22.4
     Copyright (C) 2018 Free Software Foundation, Inc.
     GNU groff comes with ABSOLUTELY NO WARRANTY.
     You may redistribute copies of groff and its subprograms
     under the terms of the GNU General Public License.
     For more information about these matters, see the file
     named COPYING.

     called subprograms:

     GNU troff (grGofNf) Uv egrrsoitotny  1(.g2r2o.f4f
     ) version 1.22.4

This happens because  all the subprograms are launched almost simultaneously, and the text they emit is mixed into one illegible mess.  (I'm not sure the same problem doesn't happen on Unix.)

To fix this, I propose the attached patch, which runs the subprograms sequentially in this specific case, as there's no pipe to run anyway.  While at that, the patch also avoids breaking the loop if one of the preprocessors fails to run, e.g. if it is not installed; this makes the behavior more similar to what I see on Unix.

Eli Zaretskii <eliz>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #45749:  groff-pipe.patch added by eliz (1KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gbranden (new cygwin groff maintainer)
  • -email is unavailable- added by gbranden (Posted a comment)
  • -email is unavailable- added by eliz (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-03-31 gbranden StatusNeed Info Invalid
        Assigned toNone gbranden
        Open/ClosedOpen Closed
        Summary[PATCH] &quot;groff -v -e -s -t&quot; produces garbled output on MS-Windows "groff -v -e -s -t" produces garbled output on MS Windows
    2023-03-30 gbranden Carbon-Copy- Added -email is unavailable-
    2022-01-11 gbranden Item GroupNone Incorrect behaviour
    2020-10-21 gbranden StatusNone Need Info
    2020-10-13 barx Carbon-CopyRemoved 93119 -
    2020-10-13 barx Summary&quot;groff -v -e -s -t&quot; produces garbled output on MS-Windows [PATCH] "groff -v -e -s -t" produces garbled output on MS-Windows
    2018-12-27 eliz Attached File- Added groff-pipe.patch, #45749

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code