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