bugGNU troff - Bugs: bug #55042, [PATCH] troffrc: doesn't .tr...


bug #55042: [PATCH] troffrc: doesn't .tr \[u00A0] to \~ as it does \[char160]

Submitted by:  Bjarni Ingi Gislason <bjarniig>
Submitted on:  Sat 17 Nov 2018 04:07:21 PM UTC  
Category:  Macro - others Severity:  2 - Minor
Item Group:  Incorrect behaviour 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.


Sat 17 Nov 2018 04:07:21 PM UTC, original submission:  

From f47b7dd139525bf3b8b4fbe767c3a45816c8445a Mon Sep 17 00:00:00 2001
From: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
Date: Sat, 17 Nov 2018 15:59:09 +0000
Subject: [PATCH] The character \[u00A0] is not recognized
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

  The input character "no-break space" (' ', 0xA0) is mapped by "groff"
to '\~' (groff_char(7)), but only the character name '\[char160]' is
translated in the file "tmac/troffrc".

  The "preconv" translates the no-break space to the name '\[u00A0]'.


.pl 3v
.\".tr \[u00A0]\~


echo ' ' | preconv

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
 tmac/troffrc | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/tmac/troffrc b/tmac/troffrc
index 1bd4aa8c..8895a9a0 100644
--- a/tmac/troffrc
+++ b/tmac/troffrc
@@ -33,10 +33,14 @@ troffrc!X100 troffrc!X100-12 troffrc!lj4 troff!lbp troffrc!html troffrc!pdf
.\" Test whether we work under EBCDIC and map the no-breakable space
.\" character accordingly.
-.do ie '\[char97]'a' \
+.do ie '\[char97]'a' \{\
.        do tr \[char160]\~
-.el \
+.        do tr \[u00A0]\~
+.el \{\
.        do tr \[char65]\~
+.        do tr \[u0041]\~
.\" Set the hyphenation language to 'us'.
.do hla us

Bjarni Ingi Gislason <bjarniig>


(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 gbranden (Updated the item)
  • -email is unavailable- added by bgarrigues (Updated the item)
  • -email is unavailable- added by bjarniig (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.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-07-25 gbranden Summary[PATCH] The character \[u00A0] is not recognized => [PATCH] troffrc: doesn't .tr \[u00A0] to \~ as it does \[char160]
    2018-11-25 bgarrigues Severity3 - Normal => 2 - Minor

    Back to the top

    Powered by Savane 3.5