bugGNU roff - Bugs: bug #65977, [troff] `device` request should...

 
 

bug #65977: [troff] `device` request should work early as `\X` does

Submitter:  G. Branden Robinson <gbranden>
Submitted:  Thu 11 Jul 2024 06:06:44 AM UTC
   
 
Category:  Core Severity:  3 - Normal
Item Group:  Incorrect behaviour Status:  Fixed
Privacy:  Public Assigned to:  gbranden
Open/Closed:  Closed Planned Release:  1.24.0
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Mon 26 Aug 2024 03:11:25 AM UTC, comment #3: 


commit 2881748b0216430290410910298d38610d7fbb81
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Sat Aug 24 16:34:35 2024 -0500

    [groff]: Simply test of `device` request.

    It's no longer necessary to explicitly put a break on the output.

    See <https://savannah.gnu.org/bugs/?65977>.

    Continues commit 017779a9a7, 16 July.


G. Branden Robinson <gbranden>
Group administrator
Fri 19 Jul 2024 07:17:12 PM UTC, comment #2: 


commit 017779a9a78ae5890b792b89d3a27a2bbcc864c6
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Tue Jul 16 10:03:52 2024 -0500

    [troff]: Fix Savannah #65977 (early `device` req).

    * src/roff/troff/input.cpp (device_request): Honor a `device` request
      even if it precedes any formatted output, as we do the `\X` escape
      sequence.

      Fixes <https://savannah.gnu.org/bugs/?65977>.

    $ printf '.device\n'| ./build/test-groff -Zww
    troff: warning: device control request expects arguments

    $ printf '.device tty: foo my bar\n'| ./build/test-groff -Zww
    x T ps
    x res 72000 1 1
    x init
    p1
    V12000
    H72000
    x font 5 TR
    f5
    s10000
    V12000
    H72000
    md
    DFd
    x X tty: foo my bar
    n12000 0
    x trailer
    V792000
    x stop

    $ printf '\\X@tty: foo my bar@\n'| ./build/test-groff -Zww
    x T ps
    x res 72000 1 1
    x init
    p1
    V12000
    H72000
    x font 5 TR
    f5
    s10000
    V12000
    H72000
    md
    DFd
    x X tty: foo my bar
    n12000 0
    x trailer
    V792000
    x stop


G. Branden Robinson <gbranden>
Group administrator
Tue 16 Jul 2024 03:01:16 PM UTC, comment #1: 

Found a fix.

G. Branden Robinson <gbranden>
Group administrator
Thu 11 Jul 2024 06:06:44 AM UTC, original submission:  

Instead it is silently ignored.


$ printf '.device tty: foo\\h#1i#bar\n' | groff -T ascii -Z
x T ascii
x res 240 24 40
x init
p1
x trailer
V2640
x stop


Alternatively, fix it so it works as the entrée to the meal.

G. Branden Robinson <gbranden>
Group administrator

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by gbranden (Submitted the item)
  •  

    Votes

    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.

     

    History

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-07-31 gbranden Item GroupWarning/Suspicious behaviour Incorrect behaviour
    2024-07-19 gbranden StatusIn Progress Fixed
        Open/ClosedOpen Closed
        Planned ReleaseNone 1.24.0
    2024-07-16 gbranden StatusNone In Progress
        Assigned toNone gbranden
        Summary[troff] `device` request should diagnose if used too early [troff] `device` request should work early as `\X` does

    Back to the top

    Powered by Savane 3.16.
    Corresponding source code