Shell quotes ' and ` are displayed wrong in dash.1 man page in Unicode
environment. Explanation:
In the groff syntax a non-escaped Ascii apostrophe (') is always logical
(English) right single quotation mark or apostrophe. In Unicode
environment (e.g. UTF-8 terminal or Postscript) it is displayed as
U+2019 RIGHT SINGLE QUOTATION MARK. In non-Unicode environment it is
displayed as U+0027 APOSTROPHE.
Similarly, in the groff syntax a non-escaped grave accent (`) is always
logical (English) left single quotation mark. In Unicode environment it
is displayed as U+2018 LEFT SINGLE QUOTATION MARK and in non-Unicode
environment as U+0060 GRAVE ACCENT.
When referreing to shell's single quote (') the groff character code
\(aq should always be used. It displays correctly in all environments.
Shell's command substitution mark (`) aka. "backtick" or "backquote"
must be written as \(ga in groff code.
Patch is attached to fix this in dash.1 man page. Patch file is meant to
be added to debian/diff directory and should apply nicely to Debian dash
package version 0.5.4-4.
Hi Teemu, thanks for the patch. But somehow I think there must be another solution, wasn't there some discussion around this on debian-devel@l.d.o? Regards, Gerrit.
Gerrit Pape kirjoitti: I agree that this patch may not be a long-term solution. There are sooooo many manpages with similar problems. Some manpages are made by writing the (g)roff code directly, but many are constructed with some kind of compiler. I reported this issue to pseudo package "general" and indeed there was some discussion on debian-devel: http://lists.debian.org/debian-devel/2007/12/msg00717.html
Hi Teemu, I don't know about the progress on this, but still think this patch shouldn't be applied to the dash package Thanks, Gerrit.
Gerrit Pape wrote (2008-07-06 16:18 +0000): Ok. But even if the patch might not be a good solution this bug's title "Shell quotes wrong in dash.1 man page in Unicode environment" is still perfectly valid. It's a fact that shell quotes (` in particular) are wrong in the dash(1) man page. So it kind of feels wrong to close this when the bug still exists. Not to say that I take it personally or mind that much. :-)
Teemu Likonen wrote: Hi Teemu, I looked over the manpage and all the examples you pointed out look fine now. So I guess something happened elsewhere in the processing chain. However, there are some other bugs in its place, for example # A `#' character specifying that the value should be printed in an ``alternative form''. in the description of printf no longer uses “curly quotation marks”. If you are still interested in this, I would welcome an updated patch.
submitter 457765 ! quit Forwarding (and hijacking the bug :)) with permission. Thanks, Teemu.