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