[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#292013: iconv(1) unescaped hyphens patch



Attached please find a very simple patch for
debian/local/manpages/iconv.1 to convert unescaped hyphens to escaped
ones. This means that man won't create troublesome Unicode characters
when it operates in a Unicode locale.

I patched iconv.1 instead of iconv.pod because I don't see in perlpod(1)
a way to specify hyphen escaping properly. I'm willing to clean up the
manual page to follow proper formatting (e.g., the option listing), if I
can do it by removing the .pod version completely and creating the .1
version directly.

Anyway, this patch is minimal, and works to fix the bug in question.

--- glibc-2.3.2.ds1/debian/local/manpages/iconv.1	2005-02-11 07:15:49.000000000 +0200
+++ glibc-2.3.2.ds1-new/debian/local/manpages/iconv.1	2005-02-11 04:51:57.000000000 +0200
@@ -203,45 +203,45 @@
 The \fBiconv\fR program converts the encoding of characters in
 \fIinputfile\fR from one coded character set to another. The result is
 written to standard output unless otherwise specified by the
-\fB--output\fR option.
+\fB\-\-output\fR option.
 .PP
-\fB--from-code\fR, \fB\-f\fR \fIencoding\fR
+\fB\-\-from\-code\fR, \fB\-f\fR \fIencoding\fR
 .PP
 Convert characters from \fIencoding\fR.
 .PP
-\fB--to-code\fR, \fB\-t\fR \fIencoding\fR
+\fB\-\-to\-code\fR, \fB\-t\fR \fIencoding\fR
 .PP
 Convert characters to \fIencoding\fR.
 .PP
-\fB--list\fR, \fB-l\fR
+\fB\-\-list\fR, \fB\-l\fR
 .PP
 List known coded character sets.
 .PP
-\fB-c\fR
+\fB\-c\fR
 .PP
 Omit invalid characters from output.
 .PP
-\fB--output\fR, \fB\-o\fR \fIfile\fR
+\fB\-\-output\fR, \fB\-o\fR \fIfile\fR
 .PP
 Specify output file (instead of stdout).
 .PP
-\fB--silent\fR, \fB-s\fR
+\fB\-\-silent\fR, \fB\-s\fR
 .PP
 Supress warnings.
 .PP
-\fB--verbose\fR
+\fB\-\-verbose\fR
 .PP
 Print progress information.
 .PP
-\fB--help\fR, \fB-?\fR
+\fB\-\-help\fR, \fB\-?\fR
 .PP
 Give help list.
 .PP
-\fB--usage\fR
+\fB\-\-usage\fR
 .PP
 Give a short usage message.
 .PP
-\fB--version\fR, \fB-V\fR
+\fB\-\-version\fR, \fB\-V\fR
 .PP
 Print program version.
 .SH "AUTHOR"
@@ -252,7 +252,7 @@
 
 .rn }` ''
 .IX Title "ICONV 1"
-.IX Name "iconv - Convert encoding of given files from one encoding to another"
+.IX Name "iconv \- Convert encoding of given files from one encoding to another"
 
 .IX Header "NAME"
 

Reply to: