bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #61394] [troff] emits U+2010 HYPHEN when interpolating negative reg


From: G. Branden Robinson
Subject: [bug #61394] [troff] emits U+2010 HYPHEN when interpolating negative register values
Date: Wed, 27 Oct 2021 05:34:21 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

URL:
  <https://savannah.gnu.org/bugs/?61394>

                 Summary: [troff] emits U+2010 HYPHEN when interpolating
negative register values
                 Project: GNU troff
            Submitted by: gbranden
            Submitted on: Wed 27 Oct 2021 09:34:20 AM UTC
                Category: Core
                Severity: 3 - Normal
              Item Group: Incorrect behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

I was updating an example from our Texinfo manual and got a surprising
result.

Input:

.nr a 10
.af a 0           \" the default format
\na,
.af a I
\na,
.af a 321
.nr a (-\na)
\na,
.af a a
\na


Output:

10, X, ‐010, ‐j


Let's go to the instant xxd(1) replay:


00000000: 3130 2c20 582c 20e2 8090 3031 302c 20e2  10, X, ...010, .
00000010: 8090 6a0a 0a                             ..j..


When formatting a negative number, GNU troff(1) should probably interpolate
the symbol that all the troff documentation ever written has sworn up and down
is a minus sign.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61394>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]