bugGNU troff - Bugs: bug #58958, undocumented (or just broken)...


bug #58958: undocumented (or just broken) inability of .char to map to \:

Submitted by:  Dave <barx>
Submitted on:  Sat 15 Aug 2020 03:26:07 AM UTC  
Category:  Core Severity:  3 - Normal
Item Group:  Documentation Status:  Confirmed
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.


Sun 22 Aug 2021 01:15:41 AM UTC, comment #3: 

"\:" is not a character but a movement in the scope of "groff".

echo '\:' | test-groff -z

x T ps
x res 72000 1 1
x init
n12000 0
x trailer
x stop

echo '\:' | test-nroff -z

x T latin1
x res 240 24 40
x init
n40 0
x trailer
x stop

Bjarni Ingi Gislason <bjarniig>
Sat 15 Aug 2020 05:49:31 PM UTC, comment #2: 

comment #1:

> Alas, you didn't fix my typo.

Copy/paste failed to fix it.  I failed to notice it altogether.

Dave <barx>
Project Member
Sat 15 Aug 2020 03:47:59 AM UTC, comment #1: 

Alas, you didn't fix my typo.

> the exact character count of "\[u2000B]"

should have been

> the exact character count of "\[u200B]"

G. Branden Robinson <gbranden>
Project Administrator
Sat 15 Aug 2020 03:26:07 AM UTC, original submission:  

(First mentioned as a side note in bug #58930, this problem is unrelated to that feature request and warrants its own report.)

.char \[u200B] \:

doesn't work.  .char being unable to map something to an escape, or at least to this particular escape, is a bug either in the implementation, or in the lack of documentation of the restriction.

Branden wrote the following in a follow-up comment:

It looks like the transform is just not happening:

.pl 1v
.char \[u200B] \:
.ds a \[u200B]
.length i \*a

.pl 1v
.ds a \[u200B]
.length i \*a

.pl 1v
.char a b
.ds a a

That unchanged length of 8, the exact character count of "\[u2000B]" is highly suspicious to me.

Dave <barx>
Project Member


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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by bjarniig (Posted a comment)
  • -email is unavailable- added by gbranden (Posted a comment)
  • -email is unavailable- added by barx (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
    2020-08-15 gbranden StatusNone => Confirmed

    Back to the top

    Powered by Savane 3.7