Your message dated Sun, 6 Jul 2008 16:18:04 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Re: Bug#457765: Shell quotes wrong in dash.1 man page in 
Unicode environment
has caused the Debian Bug report #457765,
regarding Shell quotes wrong in dash.1 man page in Unicode environment
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
457765: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=457765
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: dash
Version: 0.5.4-4
Severity: normal
Tags: patch

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.

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (900, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.18-5-k7
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)

Versions of packages dash depends on:
ii  libc6                  2.3.6.ds1-13etch2 GNU C Library: Shared libraries

dash recommends no packages.

-- debconf information:
* dash/sh: true
--- a/src/dash.1        2007-12-25 14:47:26.568071142 +0200
+++ b/src/dash.1        2007-12-25 14:35:42.000000000 +0200
@@ -294,12 +294,12 @@
 meaning of all characters except dollarsign
 .Pq $ ,
 backquote
-.Pq ` ,
+.Pq \(ga ,
 and backslash
 .Pq \e .
 The backslash inside double quotes is historically weird, and serves to
 quote only the following characters:
-.Dl $  `  \*q  \e  \*[Lt]newline\*[Gt] .
+.Dl $  \(ga  \*q  \e  \*[Lt]newline\*[Gt] .
 Otherwise it remains literal.
 .Ss Reserved Words
 Reserved words are words that have special meaning to the
@@ -979,7 +979,7 @@
 version
 .Pc :
 .Pp
-.Dl `command`
+.Dl \(gacommand\(ga
 .Pp
 The shell expands the command substitution by executing command in a
 subshell environment and replacing the command substitution with the
@@ -1430,7 +1430,7 @@
        \\?)    echo $USAGE; exit 1;;
        esac
 done
-shift `expr $OPTIND - 1`
+shift \(gaexpr $OPTIND - 1\(ga
 .Ed
 .Pp
 This code will accept any of the following as equivalent:
@@ -2090,7 +2090,7 @@
 .Pp
 List trapped signals and their corresponding action
 .Pp
-.Dl trap '' INT QUIT tstp 30
+.Dl trap \(aq\(aq INT QUIT tstp 30
 .Pp
 Ignore signals INT QUIT TSTP USR1
 .Pp

--- End Message ---
--- Begin Message ---
On Mon, Mar 03, 2008 at 02:58:19PM +0200, Teemu Likonen wrote:
> Gerrit Pape kirjoitti:
> > Hi Teemu, thanks for the patch.  But somehow I think there must be
> > another solution, wasn't there some discussion around this on
> > [EMAIL PROTECTED]
> 
> 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.


--- End Message ---

Reply via email to