Debian Bug report logs - #1052675
man-db: renders dashes as U+2010 breaking copy/paste of --long-options from man pages

version graph

Package: groff-base; Maintainer for groff-base is Colin Watson <cjwatson@debian.org>; Source for groff-base is src:groff (PTS, buildd, popcon).

Reported by: FC Stegerman <flx@obfusk.net>

Date: Mon, 25 Sep 2023 23:03:02 UTC

Severity: serious

Merged with 1041731, 1043196

Found in versions groff/1.23.0-2, groff/1.23.0-1

Fixed in version groff/1.23.0-3

Done: Colin Watson <cjwatson@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, flx@obfusk.net, Colin Watson <cjwatson@debian.org>:
Bug#1052675; Package man-db. (Mon, 25 Sep 2023 23:03:04 GMT) (full text, mbox, link).


Acknowledgement sent to FC Stegerman <flx@obfusk.net>:
New Bug report received and forwarded. Copy sent to flx@obfusk.net, Colin Watson <cjwatson@debian.org>. (Mon, 25 Sep 2023 23:03:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: FC Stegerman <flx@obfusk.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: man-db: renders dashes as U+2010 breaking copy/paste of --long-options from man pages
Date: Tue, 26 Sep 2023 00:58:27 +0200
Package: man-db
Version: 2.12.0-1
Severity: normal
X-Debbugs-Cc: flx@obfusk.net

Hi!

I ran into this before with curl in #1043309, but it seems many other
man pages (e.g. apksigner, apksigcopier, pandoc, yt-dlp, etc.) are
affected as well, which makes me wonder if this is not something that
should be fixed in man instead.

Example:

  $ man apksigner

  Now copy the string that looks like "--version" for the following
  two commands instead of typing it by hand:

  $ apksigner ‐‐version
  Unsupported command: ‐‐version. See --help for supported commands
  $ xxd <<< ‐‐version
  00000000: e280 90e2 8090 7665 7273 696f 6e0a       ......version.

  Typing it by hand with actual dashes (ASCII 0x2d) instead of U+2010:

  $ apksigner --version
  0.9
  $ xxd <<< --version
  00000000: 2d2d 7665 7273 696f 6e0a                 --version.

Workaround:

  $ LC_ALL=C man apksigner

- Fay

Severity set to 'serious' from 'normal' Request was from "G. Branden Robinson" <g.branden.robinson@gmail.com> to control@bugs.debian.org. (Tue, 26 Sep 2023 03:27:05 GMT) (full text, mbox, link).


Bug reassigned from package 'man-db' to 'groff-base'. Request was from "G. Branden Robinson" <g.branden.robinson@gmail.com> to control@bugs.debian.org. (Tue, 26 Sep 2023 03:27:06 GMT) (full text, mbox, link).


No longer marked as found in versions man-db/2.12.0-1. Request was from "G. Branden Robinson" <g.branden.robinson@gmail.com> to control@bugs.debian.org. (Tue, 26 Sep 2023 03:27:06 GMT) (full text, mbox, link).


Marked as found in versions groff/1.23.0-2. Request was from "G. Branden Robinson" <g.branden.robinson@gmail.com> to control@bugs.debian.org. (Tue, 26 Sep 2023 03:27:07 GMT) (full text, mbox, link).


Merged 1041731 1043196 1052675 Request was from "G. Branden Robinson" <g.branden.robinson@gmail.com> to control@bugs.debian.org. (Tue, 26 Sep 2023 03:27:08 GMT) (full text, mbox, link).


Message sent on to FC Stegerman <flx@obfusk.net>:
Bug#1052675. (Tue, 26 Sep 2023 03:27:10 GMT) (full text, mbox, link).


Message #18 received at 1052675-submitter@bugs.debian.org (full text, mbox, reply):

From: "G. Branden Robinson" <g.branden.robinson@gmail.com>
To: 1052675-submitter@bugs.debian.org, control@bugs.debian.org
Subject: Re: Bug#1052675: man-db: renders dashes as U+2010 breaking copy/paste of --long-options from man pages
Date: Mon, 25 Sep 2023 22:22:57 -0500
[Message part 1 (text/plain, inline)]
package man-db groff-base
severity 1052675 serious
reassign 1052675 groff-base
merge 1041731 1052675
thanks

Hi FC,

The fundamental issue here is that groff 1.23.0 is exposing, rather than
concealing, glyph usage errors in man pages.  The plan is to permit such
exposure while the next release of Debian is in development, so that
developers are made aware of the issue and can address it (if they
choose), and then conceal such errors again as a Debian patch to groff
around the time of the trixie freeze.

From groff's NEWS file:

  o The an (man) and doc (mdoc) macro packages no longer remap the -, ',
    and ` input characters to Basic Latin code points on UTF-8 devices,
    but treat them as groff normally does (and AT&T troff before it did)
    for typesetting devices, where they become the hyphen, apostrophe or
    right single quotation mark, and left single quotation mark,
    respectively.  This change is expected to expose glyph usage errors
    in man pages.  See the "PROBLEMS" file for a recipe that will
    conceal these errors.  A better long-term approach is for man pages
    to adopt correct input practices; the man pages groff_man_style(7),
    groff_char(7), and man-pages(7) (subsection "Generating optimal
    glyphs"; from the Linux man-pages project) contain such
    instructions.  Doing so also improves man page typography when
    formatting for PDF.

    If you maintain a generator of man(7) or mdoc(7) documents (such as
    a tool that converts other formats to them), and need assistance,
    please contact the groff@gnu.org mailing list and describe your
    situation.

At 2023-09-26T00:58:27+0200, FC Stegerman wrote:
>   $ LC_ALL=C man apksigner

Since many people like the expanded glyph repertoire of UTF-8, you might
apply the patch documented in groff's PROBLEMS file to your
/etc/groff/man.local.

--- start ---
.if '\*[.T]'utf8' \{\
.  char ' \[aq]
.  char - \-
.  char ^ \[ha]
.  char ` \[ga]
.  char ~ \[ti]
.\}
--- end ---

As that file notes, you may also wish to do the same for "mdoc.local".

Regards,
Branden
[signature.asc (application/pgp-signature, inline)]

Marked as found in versions groff/1.23.0-1. Request was from "G. Branden Robinson" <g.branden.robinson@gmail.com> to control@bugs.debian.org. (Tue, 26 Sep 2023 03:54:03 GMT) (full text, mbox, link).


Added tag(s) pending. Request was from Colin Watson <cjwatson@debian.org> to 1041731-submitter@bugs.debian.org. (Mon, 16 Oct 2023 11:15:05 GMT) (full text, mbox, link).


Message #23 received at 1041731-close@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1041731-close@bugs.debian.org
Subject: Bug#1041731: fixed in groff 1.23.0-3
Date: Mon, 16 Oct 2023 11:34:06 +0000
Source: groff
Source-Version: 1.23.0-3
Done: Colin Watson <cjwatson@debian.org>

We believe that the bug you reported is fixed in the latest version of
groff, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1041731@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Colin Watson <cjwatson@debian.org> (supplier of updated groff package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 16 Oct 2023 12:11:07 +0100
Source: groff
Architecture: source
Version: 1.23.0-3
Distribution: unstable
Urgency: medium
Maintainer: Colin Watson <cjwatson@debian.org>
Changed-By: Colin Watson <cjwatson@debian.org>
Closes: 1041731
Changes:
 groff (1.23.0-3) unstable; urgency=medium
 .
   [ G. Branden Robinson ]
   * debian/groff-base.mime: Run groff with '-t' to unconditionally preprocess
     with tbl(1).  Since these MIME types are assumed to be man pages anyway
     (hence the existing '-mandoc' option), it costs little to do this and will
     help many more documents render well.
 .
   [ Colin Watson ]
   * Map "-", "'", and "`" to "\-", "\[aq]", and "\[ga]" again for UTF-8
     manual pages (closes: #1041731).
Checksums-Sha1:
 6dff42fdf14518852e084ee14bd89da8a104d572 2423 groff_1.23.0-3.dsc
 1a3098d592a247afdd24fd793262768493db291a 42340 groff_1.23.0-3.debian.tar.xz
Checksums-Sha256:
 95b95950e13c7ee3391fe3cccf125329de9887d9f1967b1e2b4c61ffff9f9328 2423 groff_1.23.0-3.dsc
 e0ca7a8798c59a85ec60d2cf21802c52faaebc7082699eddc8410b2915d23bf5 42340 groff_1.23.0-3.debian.tar.xz
Files:
 f0dfbe3763cb9f22aec931797b11f329 2423 text important groff_1.23.0-3.dsc
 ddb5a2d5d37afd832583049022269b0c 42340 text important groff_1.23.0-3.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEErApP8SYRtvzPAcEROTWH2X2GUAsFAmUtGngACgkQOTWH2X2G
UAuTnxAArCQ9N3aVyvrMMf5/6u/kXZoDq0r+4NxLWIPtAqG7du5y2n/smQqBqVLa
23t0EMlf+0ThOqXq/UL/PxMe9RO5imnqHZqqyhdlSPeuIs0Bs4u2QGPPeLQpuNaM
5dOVyTHoKXmdHtVwLzhL4oOoVPHfJbxifs4QCV4x0Z5bSaptoM525xLP3Q4xzQtI
0FiapFgv+GGEaJWdqxPbdyngNmdafk2+RBLzXKBq+hDzK3jovkU8jUvdDckKEzQV
NVYPjknDYJ8khKvWozw5hnoLv+ewl9rtqTer6KmqD1i81K5PPYH/aGNomrK8TIvE
A5nDeRgzFkNX3BXSARxm7wqiV2UyEK/Sji1aVDeAdNEAV3qcPJixyoczvMK4vPRR
ulJxPrj1UmpjwgweIOnPF+rfcpS52hmh5aI+wyQDrlD4O1McsAZ79pFH9gIi53Jn
M4wwDlizUnIjmsfM5th2arVzo9l8roBcCt0czNspQQCU0K7wlIRR6RkHsAboMSCD
846Mk818pRMBunF9REbvMAgd2ZByMWR46cuYTyOtFppyHBG9o70UUls3mNcRIqzZ
D67so5OOHtIWYRiATTPFE31tKkMjYNlJ9BQpftwgvPTT8IALaF0B9xDg7K17lbqq
PzsTFncuSRJMrxkMI3zEMUfZ4HKIRnl56Y2A0bZLlumLTs2I5rw=
=Yr0N
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 18 Nov 2023 07:26:13 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Mar 10 06:13:02 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.