mharris 29214f8
Patch by Bill Anderson, to fix bug:
mharris 29214f8
	https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=57507
mharris 29214f8
mharris 29214f8
mharris 29214f8
mharris 29214f8
Description of Problem:
mharris 29214f8
mharris 29214f8
The dos2unix man page examples are confusing.
mharris 29214f8
For instance, one piece of text mentions "c.txt", but that file
mharris 29214f8
isn't used in the following example.
mharris 29214f8
mharris 29214f8
mharris 29214f8
mharris 29214f8
--- dos2unix-3.1/dos2unix.1	2004-09-28 03:17:29.000000000 -0600
mharris 29214f8
+++ dos2unix-3.1/dos2unix.1-new	2004-09-28 03:16:32.000000000 -0600
mharris 29214f8
@@ -1,123 +1,126 @@
mharris 29214f8
 .\" $$Id: dos2unix-3.1-manpage-update-57507.patch,v 1.1 2004/10/06 20:10:26 mharris Exp $$
mharris 29214f8
-.TH dos2unix 1 "dos2unix v3.0" "1995.03.31"
mharris 29214f8
-
mharris 29214f8
-.SH NAME
mharris 29214f8
-
mharris 29214f8
+.\" 
mharris 29214f8
+.TH "dos2unix" "1" "dos2unix v3.0" "1995.03.31" ""
mharris 29214f8
+.SH "NAME"
mharris 29214f8
 dos2unix \- DOS/MAC to UNIX text file format converter
mharris 29214f8
 
mharris 29214f8
-.SH SYNOPSYS
mharris 29214f8
-
mharris 29214f8
-dos2unix [options] [-c convmode] [-o file ...] [-n infile outfile ...]
mharris 29214f8
-.PP
mharris 29214f8
+.SH "SYNOPSYS"
mharris 29214f8
+dos2unix [options] [\-c convmode] [\-o file ...] [\-n infile outfile ...]
mharris 29214f8
+.PP 
mharris 29214f8
 Options:
mharris 29214f8
-.PP
mharris 29214f8
-[-hkqV] [--help] [--keepdate] [--quiet] [--version]
mharris 29214f8
-
mharris 29214f8
-.SH DESCRIPTION
mharris 29214f8
+.PP 
mharris 29214f8
+[\-hkqV] [\-\-help] [\-\-keepdate] [\-\-quiet] [\-\-version]
mharris 29214f8
 
mharris 29214f8
-.PP
mharris 29214f8
+.SH "DESCRIPTION"
mharris 29214f8
+.PP 
mharris 29214f8
 This manual page documents dos2unix, the program that converts plain text
mharris 29214f8
 files in DOS/MAC format to UNIX format.
mharris 29214f8
 
mharris 29214f8
-.SH OPTIONS
mharris 29214f8
-
mharris 29214f8
+.SH "OPTIONS"
mharris 29214f8
 The following options are available:
mharris 29214f8
-.TP
mharris 29214f8
-.B \-h --help
mharris 29214f8
+.TP 
mharris 29214f8
+.B \-h \-\-help
mharris 29214f8
 Print online help.
mharris 29214f8
 
mharris 29214f8
-.TP
mharris 29214f8
-.B \-k --keepdate
mharris 29214f8
+.TP 
mharris 29214f8
+.B \-k \-\-keepdate
mharris 29214f8
 Keep the date stamp of output file same as input file.
mharris 29214f8
 
mharris 29214f8
-.TP
mharris 29214f8
-.B \-q --quiet
mharris 29214f8
+.TP 
mharris 29214f8
+.B \-q \-\-quiet
mharris 29214f8
 Quiet mode. Suppress all warning and messages.
mharris 29214f8
 
mharris 29214f8
-.TP
mharris 29214f8
-.B \-V --version
mharris 29214f8
+.TP 
mharris 29214f8
+.B \-V \-\-version
mharris 29214f8
 Prints version information.
mharris 29214f8
 
mharris 29214f8
-.TP
mharris 29214f8
-.B \-c --convmode convmode
mharris 29214f8
-Sets conversion mode. Simulates dos2unix under SunOS.
mharris 29214f8
+.TP 
mharris 29214f8
+.B \-c \-\-convmode convmode
mharris 29214f8
+Sets conversion mode. Where convmode is one of:
mharris 29214f8
+.B ASCII, 7bit, ISO, Mac
mharris 29214f8
+with ASCII being the default.
mharris 29214f8
+Simulates dos2unix under SunOS.
mharris 29214f8
+
mharris 29214f8
+
mharris 29214f8
 
mharris 29214f8
-.TP
mharris 29214f8
-.B \-o --oldfile file ...
mharris 29214f8
+.TP 
mharris 29214f8
+.B \-o \-\-oldfile file ...
mharris 29214f8
 Old file mode. Convert the file and write output to it. The program 
mharris 29214f8
 default to run in this mode. Wildcard names may be used.
mharris 29214f8
 
mharris 29214f8
-.TP
mharris 29214f8
-.B \-n --newfile infile outfile ...
mharris 29214f8
+.TP 
mharris 29214f8
+.B \-n \-\-newfile infile outfile ...
mharris 29214f8
 New file mode. Convert the infile and write output to outfile. File names
mharris 29214f8
 must be given in pairs and wildcard names should NOT be used or you WILL 
mharris 29214f8
 lost your files. 
mharris 29214f8
 
mharris 29214f8
-.SH EXAMPLES
mharris 29214f8
-
mharris 29214f8
-.LP
mharris 29214f8
+.SH "EXAMPLES"
mharris 29214f8
+.LP 
mharris 29214f8
 Get input from stdin and write output to stdout.
mharris 29214f8
-.IP
mharris 29214f8
+.IP 
mharris 29214f8
 .B dos2unix
mharris 29214f8
 
mharris 29214f8
-.LP
mharris 29214f8
+.LP 
mharris 29214f8
 Convert and replace a.txt. Convert and replace b.txt.
mharris 29214f8
-.IP
mharris 29214f8
+.IP 
mharris 29214f8
 .B dos2unix a.txt b.txt
mharris 29214f8
-.IP
mharris 29214f8
-.B dos2unix -o a.txt b.txt
mharris 29214f8
+.IP 
mharris 29214f8
+.B dos2unix \-o a.txt b.txt
mharris 29214f8
 
mharris 29214f8
-.LP
mharris 29214f8
+.LP 
mharris 29214f8
 Convert and replace a.txt in ASCII conversion mode. 
mharris 29214f8
+.IP 
mharris 29214f8
+.B dos2unix a.txt \-c iso b.txt
mharris 29214f8
+
mharris 29214f8
+.LP 
mharris 29214f8
 Convert and replace b.txt in ISO conversion mode.
mharris 29214f8
+.IP 
mharris 29214f8
+.B dos2unix \-c ascii a.txt \-c iso b.txt
mharris 29214f8
+
mharris 29214f8
+.LP 
mharris 29214f8
 Convert c.txt from Mac to Unix ascii format.
mharris 29214f8
-.IP
mharris 29214f8
-.B dos2unix a.txt -c iso b.txt
mharris 29214f8
-.IP
mharris 29214f8
-.B dos2unix -c ascii a.txt -c iso b.txt
mharris 29214f8
-.IP
mharris 29214f8
-.B dos2unix -c mac a.txt  b.txt
mharris 29214f8
 
mharris 29214f8
-.LP
mharris 29214f8
+.IP 
mharris 29214f8
+.B dos2unix \-c mac c.txt  b.txt
mharris 29214f8
+
mharris 29214f8
+.LP 
mharris 29214f8
 Convert and replace a.txt while keeping original date stamp.
mharris 29214f8
-.IP
mharris 29214f8
-.B dos2unix -k a.txt
mharris 29214f8
-.IP
mharris 29214f8
-.B dos2unix -k -o a.txt
mharris 29214f8
+.IP 
mharris 29214f8
+.B dos2unix \-k a.txt
mharris 29214f8
+.IP 
mharris 29214f8
+.B dos2unix \-k \-o a.txt
mharris 29214f8
 
mharris 29214f8
-.LP
mharris 29214f8
+.LP 
mharris 29214f8
 Convert a.txt and write to e.txt.
mharris 29214f8
-.IP
mharris 29214f8
-.B dos2unix -n a.txt e.txt
mharris 29214f8
+.IP 
mharris 29214f8
+.B dos2unix \-n a.txt e.txt
mharris 29214f8
 
mharris 29214f8
-.LP
mharris 29214f8
+.LP 
mharris 29214f8
 Convert a.txt and write to e.txt, keep date stamp of e.txt same as a.txt.
mharris 29214f8
-.IP
mharris 29214f8
-.B dos2unix -k -n a.txt e.txt 
mharris 29214f8
+.IP 
mharris 29214f8
+.B dos2unix \-k \-n a.txt e.txt 
mharris 29214f8
 
mharris 29214f8
-.LP
mharris 29214f8
+.LP 
mharris 29214f8
 Convert and replace a.txt. Convert b.txt and write to e.txt.
mharris 29214f8
-.IP
mharris 29214f8
-.B dos2unix a.txt -n b.txt e.txt
mharris 29214f8
-.IP
mharris 29214f8
-.B dos2unix -o a.txt -n b.txt e.txt
mharris 29214f8
+.IP 
mharris 29214f8
+.B dos2unix a.txt \-n b.txt e.txt
mharris 29214f8
+.IP 
mharris 29214f8
+.B dos2unix \-o a.txt \-n b.txt e.txt
mharris 29214f8
 
mharris 29214f8
-.LP
mharris 29214f8
+.LP 
mharris 29214f8
 Convert c.txt and write to e.txt. Convert and replace a.txt.
mharris 29214f8
 Convert and replace b.txt. Convert d.txt and write to f.txt.
mharris 29214f8
-.IP
mharris 29214f8
-.B dos2unix -n c.txt e.txt -o a.txt b.txt -n d.txt f.txt
mharris 29214f8
+.IP 
mharris 29214f8
+.B dos2unix \-n c.txt e.txt \-o a.txt b.txt \-n d.txt f.txt
mharris 29214f8
 
mharris 29214f8
-.SH DIAGNOSTICS
mharris 29214f8
-
mharris 29214f8
-.SH BUGS
mharris 29214f8
+.SH "DIAGNOSTICS"
mharris 29214f8
 
mharris 29214f8
+.SH "BUGS"
mharris 29214f8
 The program does not work properly under MSDOS in stdio processing mode. 
mharris 29214f8
 If you know why is that so, please tell me.
mharris 29214f8
 
mharris 29214f8
-.SH AUTHORS
mharris 29214f8
-
mharris 29214f8
-Benjamin Lin -
mharris 29214f8
+.SH "AUTHORS"
mharris 29214f8
+Benjamin Lin \-
mharris 29214f8
 .B <blin@socs.uts.edu.au>
mharris 29214f8
 
mharris 29214f8
 
mharris 29214f8
@@ -125,18 +128,17 @@
mharris 29214f8
 .B <wuebben@kde.org>
mharris 29214f8
 
mharris 29214f8
 
mharris 29214f8
-.SH MISCELLANY
mharris 29214f8
-
mharris 29214f8
+.SH "MISCELLANY"
mharris 29214f8
 Tested environment:
mharris 29214f8
-.IP
mharris 29214f8
+.IP 
mharris 29214f8
 Linux 1.2.0 with GNU C 2.5.8
mharris 29214f8
-.IP
mharris 29214f8
+.IP 
mharris 29214f8
 SunOS 4.1.3 with GNU C 2.6.3
mharris 29214f8
-.IP
mharris 29214f8
-MS-DOS 6.20 with Borland C++ 4.02
mharris 29214f8
-.PP
mharris 29214f8
+.IP 
mharris 29214f8
+MS\-DOS 6.20 with Borland C++ 4.02
mharris 29214f8
+.PP 
mharris 29214f8
 Suggestions and bug reports are welcome.
mharris 29214f8
 
mharris 29214f8
-.SH SEE ALSO
mharris 29214f8
+.SH "SEE ALSO"
mharris 29214f8
 unix2dos(1) mac2unix(1)
mharris 29214f8