GNU bug report logs -
#7577
non-ascii char in manpage
Previous Next
Reported by: tsener <at> bsdmail.com
Date: Tue, 7 Dec 2010 09:26:02 UTC
Severity: normal
Done: Jim Meyering <jim <at> meyering.net>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 7577 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 12/07/2010 02:30 AM, tsener <at> bsdmail.com wrote:
> Hi there,
>
> reading through the man page for date, I found this two that look like a typo, (â) I guess I could be wrong, but:
> %x localeâs date representation (e.g., 12/31/99)
> %X localeâs time representation (e.g., 23:13:48)
Thanks for the report. This is not a bug in coreutils, per se. Rather,
it is probably an issue that help2man (which is how we generate man
pages automatically from 'date --help' output) is outputting a raw ASCII
' (rather than using roff markup for an apostrophe that renders better
according to locale, or even the roff markup for an explicit \x27 byte
regardless of locale). Then, you couple that with some versions of man
that try to display unescaped ' in man sources as a nicer
charset-specific ’ (here's hoping your email program renders that
decently), but in such a manner that it used a different charset
encoding than what your current terminal supports, resulting in the
wrong glyph being displayed.
I don't know if there's anything coreutils could do to address this.
You might want to raise a bug report with help2man to see if that
program can do a better job of converting ` and ' into appropriate roff
escapes (whether for literal ASCII bytes, or for stylized
locale-specific angled single quotes - it may require some hefty
heuristics to get right, when translating from simple --help output).
Or, you might file a bug report against your distro's version of man for
being "too" smart and transliterating raw apostrophes into the wrong
charset rather than passing them through unchanged.
--
Eric Blake eblake <at> redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
[signature.asc (application/pgp-signature, attachment)]
This bug report was last modified 13 years and 328 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.