2 .\" Copyright (c) 2000, Sun Microsystems, Inc.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH UNIX2DOS 1 "Sep 14, 2000"
8 unix2dos \- convert text file from ISO format to DOS format
12 \fBunix2dos\fR [\fB-ascii\fR] [\fB-iso\fR] [\fB-7\fR]
13 [\fB-437\fR | \fB-850\fR | \fB-860\fR | \fB-863\fR | \fB-865\fR] \fIoriginalfile\fR \fIconvertedfile\fR
19 The \fBunix2dos\fR utility converts \fBISO\fR standard characters to the
20 corresponding characters in the \fBDOS\fR extended character set.
23 This command may be invoked from either \fBDOS\fR or SunOS. However, the
24 filenames must conform to the conventions of the environment in which the
28 If the original file and the converted file are the same, \fBunix2dos\fR will
29 rewrite the original file after converting it.
33 The following options are supported:
40 Adds carriage returns and converts end of file characters in SunOS format text
41 files to conform to \fBDOS\fR requirements.
50 This is the default. Converts \fBISO\fR standard characters to the
51 corresponding character in the \fBDOS\fR extended character set.
60 Converts 8 bit SunOS characters to 7 bit \fBDOS\fR characters.
65 On non-i386 systems, \fBunix2dos\fR will attempt to obtain the keyboard type to
66 determine which code page to use. Otherwise, the default is US. The user may
67 override the code page with one of the following options:
83 Use multilingual code page
92 Use Portuguese code page
101 Use French Canadian code page
116 The following operands are required:
120 \fB\fIoriginalfile\fR \fR
123 The original file in \fBISO\fR format that is being converted to \fBDOS\fR
130 \fB\fIconvertedfile\fR \fR
133 The new file in \fBDOS\fR format that has been converted from the original
134 \fBISO\fR file format.
140 \fBdos2unix\fR(1), \fBls\fR(1), \fBattributes\fR(5)
145 \fB\fBFile \fIfilename\fR not found, or no read permission\fR\fR
149 The input file you specified does not exist, or you do not have read
150 permission. Check with the SunOS command, \fBls\fR \fB-l\fR (see \fBls\fR(1)).
156 \fB\fBBad output filename \fIfilename\fR, or no write permission\fR\fR
160 The output file you specified is either invalid, or you do not have write
161 permission for that file or the directory that contains it. Check also that the
162 drive or diskette is not write-protected.
168 \fB\fBError while writing to temporary file\fR\fR
172 An error occurred while converting your file, possibly because there is not
173 enough space on the current drive. Check the amount of space on the current
174 drive using the \fBDIR\fR command. Also be certain that the default diskette or
175 drive is write-enabled (not write-protected). Notice that when this error
176 occurs, the original file remains intact.
182 \fB\fBTranslated tmpfile name = \fIfilename\fR.\fR\fR
186 \fB\fBCould not rename tmpfile to \fIfilename\fR.\fR\fR
190 The program could not perform the final step in converting your file. Your
191 converted file is stored under the name indicated on the second line of this