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

 
 

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

Submitted by:  Eli Zaretskii <eliz>
Submitted on:  Thu 27 Dec 2018 05:15:44 PM UTC  
 
Category:  Core Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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 eliz (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-12-27 eliz Attached File- => Added groff-pipe.patch, #45749

    Back to the top


    Powered by Savane 3.5