Re: Incorrect parsing of OSC 8 hyperlinks

"G. Branden Robinson" <[email protected]> Fri, 29 May 2026 06:19:29 -0500
Newsgroups org.kernel.vger.linux-man
Message-ID <20260529111929.7vvqnyie3ankf4ec@illithid>
At 2026-05-29T12:08:32+0100, Pádraig Brady wrote:
> I see all the coreutils man pages on man7.org are corrupted,
> due to the misparsing of OSC 8 hyper links output by --help.

I think a recent message of mine to the coreutils list:

https://lists.gnu.org/r/coreutils/2026-05/msg00080.html

...might have passed you in the night.

> As a quick fix you can set the TERM=dumb environment variable
> which will suppress these escapes.

On that note, I'd like to take this opportunity to solicit votes for a
change I've proposed for groff 1.25 (expected in July).

https://savannah.gnu.org/bugs/?67947

Is anyone reading interested in that?

Also, I think Michael might be interested in:

https://savannah.gnu.org/bugs/?66401

> Note the help2man that is shipped with coreutils (in man/help2man)
> is updated to support these escapes.
> 
> The escaping should be quite easy to parse though,
> if you wanted to implement full support.
> For example the arch html generator supports this as can be seen at:
> https://man.archlinux.org/man/tee.1

I'd be surprised if device extension escape sequences (`\X'tty: link'`)
are easier to parse than `UR` and `MT` macro arguments.

But I could be wrong.  I'm going by my nose on that question.

Regards,
Branden
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEh3PWHWjjDgcrENwa0Z6cfXEmbc4FAmoZdjkACgkQ0Z6cfXEm
bc5veQ//U2Wn3c38082ZAoJxHBuPgDiJpD4GzBIKETe1nop3ThY+bPDV/EiNQVNT
UwxHtjFRH/lt8t2nrSvpVUV3l5/tQNJn27hJmUpiWU9KHCazQMk3piQBSqdY+0z0
Zzy44p+vtSq2KtUML1YRTcYGCNMZqCLs7FkiZappMdSNjuNoC2Pbz/nl+L6D/ukR
ipMbfB6xnyqJC5bR8Qz0nzkOUute1y5FnZVf6V6rfwgBds2kRtqXITAD55SkNGCf
1Tc0qMc9DzqNXsmqjb/+FHU9n6ChtWuvXG4iCBKXBCsA/mg/HEngPrtRk3sOUBlb
P8qBEyyE//m8cPHuOMGbP5/DnjhDPy+8KBqZSdWLZzMdUgnsb3f+8waguof69ge7
m7Iax7EPdfbQ8dGji56wZsHh4b+Msrzj7jSzfd7DhBYcQQSqr6ksRhAm0IEvyzHU
17Mn8cOhy2SN7UJpQ/8cJXAF8p4a60cKgaLZarqZflwleL7bmUxX4kRDxeu4I60F
oRTD1ILQmqlZHRjSCxUmXehA/l/UnM4La0EHfP5Vyfuz+A1NLl979V8GSDlYf0/U
fXdO2Km8Y/eBlkHp7aQifK4hKFQJfvYi/CsMW7L7a9sqvamPfXXFw/zinLPr7PB+
i8tDN+DweO7xr/CQP0cROGKsAq3Xl/niFebkYoUUcU3r8cHA6ro=
=gyhr
-----END PGP SIGNATURE-----