Re: [BUG] italics run past where they should

2022-08-17 Thread Magnus Nordenadler
On Wed Aug 17, 2022 at 3:08 PM CEST, Alejandro Colomar wrote: > It's curious that batcat had the same bug at the same time. Is it? Bat (or batcat in Debian) is a replacement for cat, not less; it doesn't provide its own pager. From the readme: > By default, bat pipes its own output to a pager (e.

Re: [BUG] italics run past where they should

2022-08-17 Thread Alejandro Colomar
Hi Magnus, On 8/17/22 15:45, Magnus Nordenadler wrote: On Wed Aug 17, 2022 at 3:08 PM CEST, Alejandro Colomar wrote: It's curious that batcat had the same bug at the same time. Is it? Bat (or batcat in Debian) is a replacement for cat, not less; it doesn't provide its own pager. From the read

Re: [BUG] italics run past where they should

2022-08-17 Thread Alejandro Colomar
Hi Branden, On 8/17/22 14:12, G. Branden Robinson wrote: Hi Alex, Good news--I finally see a problem. At 2022-08-17T13:49:35+0200, Alejandro Colomar wrote: I made the reproducer smaller, so that it's reasier to investigate. I produced a one-liner file, and then script(1)ed the reproduction o

Re: [BUG] italics run past where they should

2022-08-17 Thread G. Branden Robinson
Hi Alex, Good news--I finally see a problem. At 2022-08-17T13:49:35+0200, Alejandro Colomar wrote: > I made the reproducer smaller, so that it's reasier to investigate. I > produced a one-liner file, and then script(1)ed the reproduction of > the bug (I made the terminal shorter, 80x3, to get le

Re: [BUG] italics run past where they should

2022-08-17 Thread G. Branden Robinson
Hi Alex, Is the subject line still accurate? I thought the problem we were chasing at this point was that all character attributes got shut off after the end of a highlighted match when using the pager to search for text in a man page. Regardless, I'm not able to reproduce _any_ misrendering. A

Re: [BUG] italics run past where they should

2022-08-17 Thread Alejandro Colomar
Hi Branden, On 8/17/22 13:24, Alejandro Colomar wrote: Reproduced:  1986  <$(man -w membarrier) groff -Tutf8 -man > grotty.out  1987  less grotty.out  1988  less -R grotty.out  1989  batcat grotty.out The page I used is not compressed, since it's installed from source. zcatting Debian's

Re: [BUG] italics run past where they should

2022-08-17 Thread Alejandro Colomar
Hi Branden, On 8/17/22 13:01, G. Branden Robinson wrote: $ GROFF_SGR=1 man membarrier with Debian's groff 1.22.4 triggers the bug in Sid, but not in stable. What does this tell you? That I don't have enough information yet. Render the page directly with groff. (export GROFF_SGR=1; zcat $(ma

Re: [BUG] italics run past where they should

2022-08-17 Thread Alejandro Colomar
On 8/17/22 13:01, G. Branden Robinson wrote: That I don't have enough information yet. Render the page directly with groff. (export GROFF_SGR=1; zcat $(man -w membarrier) | groff -Tutf8 -man > grotty.out) I guess you don't mind that I use groff 1.23.0 since both seem to behave the same. It'

Re: [BUG] italics run past where they should

2022-08-17 Thread G. Branden Robinson
Hi Alex, At 2022-08-17T09:52:27+0200, Alejandro Colomar wrote: > On 8/17/22 07:34, G. Branden Robinson wrote: > > One difference to keep in mind is that Debian's groff is patched to > > recognize a "GROFF_SGR" environment variable, and disables SGR > > output from grotty(1) by default. So perhaps

Re: [BUG] italics run past where they should

2022-08-17 Thread Alejandro Colomar
Hi Branden, On 8/17/22 07:34, G. Branden Robinson wrote: One difference to keep in mind is that Debian's groff is patched to recognize a "GROFF_SGR" environment variable, and disables SGR output from grotty(1) by default. So perhaps you could see if you can reproduce it in Debian stable using i

Re: [BUG] italics run past where they should

2022-08-16 Thread G. Branden Robinson
Hi Alex, At 2022-08-16T23:36:40+0200, Alejandro Colomar wrote: > Okay, so I tried with Debian stable, and groff built from source > doesn't have a bug there. > > To reproduce the bug you need: > > - Debian Sid > - Any pager that does highlighting will do (tried less and batcat). > - Any terminal

Re: [BUG] italics run past where they should

2022-08-16 Thread Alejandro Colomar
Hi Branden, On 8/16/22 22:52, Alejandro Colomar wrote: Hi Branden, On 8/16/22 18:58, Alejandro Colomar wrote: Heh, I just installed three virtual machines: debian stable, testing, and unstable.  Guess what?  None of them reproduce the issue. This is very weird.  AFAIR, the only difference th

Re: [BUG] italics run past where they should

2022-08-16 Thread Alejandro Colomar
Hi Branden, On 8/16/22 18:58, Alejandro Colomar wrote: Heh, I just installed three virtual machines: debian stable, testing, and unstable.  Guess what?  None of them reproduce the issue. This is very weird.  AFAIR, the only difference that I have compared to a clean Sid install, is that I hav

Re: [BUG] italics run past where they should

2022-08-16 Thread Alejandro Colomar
Hi Branden, On 8/16/22 15:31, G. Branden Robinson wrote: At 2022-08-16T15:13:54+0200, Alejandro Colomar wrote: That's weird; I used both xterm and xfce-terminal, and both seem to reproduce it. I documented all of the software I used to reproduce it in this message:

Re: [BUG] italics run past where they should

2022-08-16 Thread Alejandro Colomar
On 8/16/22 15:31, G. Branden Robinson wrote: printf '\e[1mbold\e[7minversebold\e[27mbold\e[22mnormal\e[0m\n' I see what the words tell. Nothing weird. -- Alejandro Colomar OpenPGP_signature Description: OpenPGP digital signature

Re: [BUG] italics run past where they should

2022-08-16 Thread G. Branden Robinson
At 2022-08-16T15:13:54+0200, Alejandro Colomar wrote: > That's weird; I used both xterm and xfce-terminal, and both seem to > reproduce it. I documented all of the software I used to reproduce it > in this message: > > Ah right, th

Re: [BUG] italics run past where they should

2022-08-16 Thread G. Branden Robinson
Hi Alex, At 2022-08-16T13:57:00+0200, Alejandro Colomar wrote: > On 8/16/22 03:59, G. Branden Robinson wrote: > > I didn't realize you were waiting on me--sorry. It would be good if > > you could collect the pager output _including terminal escape > > sequences_, for instance using the script(1)

Re: [BUG] italics run past where they should

2022-08-16 Thread Alejandro Colomar
On 8/16/22 14:40, G. Branden Robinson wrote: Hi Alex, At 2022-08-16T13:57:00+0200, Alejandro Colomar wrote: On 8/16/22 03:59, G. Branden Robinson wrote: I didn't realize you were waiting on me--sorry. It would be good if you could collect the pager output _including terminal escape sequence

Re: [BUG] italics run past where they should

2022-08-16 Thread Alejandro Colomar
On 8/16/22 13:57, Alejandro Colomar wrote: Hi Branden, On 8/16/22 03:59, G. Branden Robinson wrote: I didn't realize you were waiting on me--sorry.  It would be good if you could collect the pager output _including terminal escape sequences_, for instance using the script(1) command (as Ralph

Re: [BUG] italics run past where they should

2022-08-16 Thread Alejandro Colomar
Hi Branden, On 8/16/22 03:59, G. Branden Robinson wrote: I didn't realize you were waiting on me--sorry. It would be good if you could collect the pager output _including terminal escape sequences_, for instance using the script(1) command (as Ralph pointed out). Attach it to your email. It s

Re: [BUG] italics run past where they should

2022-08-15 Thread G. Branden Robinson
Hi Alex, At 2022-08-15T22:53:42+0200, Alejandro Colomar wrote: > On 7/21/22 18:46, G. Branden Robinson wrote: [...] > > I have a more precise hypothesis. > > > > You have obviously observed that these pagers highlight the match. > > This is often done by selecting the terminal's "standout" mode (

Re: [BUG] italics run past where they should

2022-08-15 Thread Alejandro Colomar
Hi Branden, On 7/21/22 18:46, G. Branden Robinson wrote: Hi Alex, At 2022-07-21T14:07:35+0200, Alejandro Colomar wrote: On 7/21/22 12:49, Alejandro Colomar wrote: On 7/21/22 12:46, Alejandro Colomar wrote: On 7/21/22 11:25, G. Branden Robinson wrote: At 2022-07-20T16:58:34+0200, Alejandro C

Re: [BUG] italics run past where they should

2022-07-23 Thread G. Branden Robinson
At 2022-07-23T10:44:35+0100, Ralph Corderoy wrote: > > If you can persuade the pager to dump its output to a file without > > noticing that it's not a TTY > ... > > I don't remember the trick I used. > > script(1) would do that. That was probably it; while I was exposed to the command way back on

Re: [BUG] italics run past where they should

2022-07-23 Thread Ralph Corderoy
Hi Branden, > If you can persuade the pager to dump its output to a file without > noticing that it's not a TTY ... > I don't remember the trick I used. script(1) would do that. -- Cheers, Ralph.

Re: [BUG] italics run past where they should

2022-07-21 Thread G. Branden Robinson
Hi Alex, At 2022-07-21T14:07:35+0200, Alejandro Colomar wrote: > On 7/21/22 12:49, Alejandro Colomar wrote: > > On 7/21/22 12:46, Alejandro Colomar wrote: > > > On 7/21/22 11:25, G. Branden Robinson wrote: > > > > At 2022-07-20T16:58:34+0200, Alejandro Colomar wrote: > > > > > I'm not sure if this

Re: [BUG] italics run past where they should

2022-07-21 Thread Alejandro Colomar
Hi Branden, On 7/21/22 12:49, Alejandro Colomar wrote: On 7/21/22 12:46, Alejandro Colomar wrote: On 7/21/22 11:25, G. Branden Robinson wrote: Hi Alex, At 2022-07-20T16:58:34+0200, Alejandro Colomar wrote: I'm not sure if this is a groff(1) bug, or less(1), or who knows...  From your d

Re: [BUG] italics run past where they should

2022-07-21 Thread Alejandro Colomar
On 7/21/22 12:46, Alejandro Colomar wrote: On 7/21/22 11:25, G. Branden Robinson wrote: Hi Alex, At 2022-07-20T16:58:34+0200, Alejandro Colomar wrote: I'm not sure if this is a groff(1) bug, or less(1), or who knows...  From your description I suspect a bug either in less(1) or your term

Re: [BUG] italics run past where they should

2022-07-21 Thread Alejandro Colomar
On 7/21/22 11:25, G. Branden Robinson wrote: Hi Alex, At 2022-07-20T16:58:34+0200, Alejandro Colomar wrote: I'm not sure if this is a groff(1) bug, or less(1), or who knows... From your description I suspect a bug either in less(1) or your terminal emulator. Yup, I also had that feeling,

Re: [BUG] italics run past where they should

2022-07-21 Thread G. Branden Robinson
Hi Alex, At 2022-07-20T16:58:34+0200, Alejandro Colomar wrote: > I'm not sure if this is a groff(1) bug, or less(1), or who knows... From your description I suspect a bug either in less(1) or your terminal emulator. > I've seen it sporadically, but when I tried to reproduce it, I didn't > rememb

[BUG] italics run past where they should

2022-07-20 Thread Alejandro Colomar
Hi Branden, I'm not sure if this is a groff(1) bug, or less(1), or who knows... I've seen it sporadically, but when I tried to reproduce it, I didn't remember how I had triggered it, so I couldn't report it. Now I can consistently reproduce it. I'd expect the issue to be in less(1), because