1 .\" $Id: preconv.1,v 1.2 2011/05/26 12:14:46 kristaps Exp $
3 .\" Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
5 .\" Permission to use, copy, modify, and distribute this software for any
6 .\" purpose with or without fee is hereby granted, provided that the above
7 .\" copyright notice and this permission notice appear in all copies.
9 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 .Dd $Mdocdate: May 26 2011 $
22 .Nd recode multibyte UNIX manuals
31 utility recodes multibyte
36 or other troff system supporting the
41 Its arguments are as follows:
45 This is case-insensitive.
51 The document's encoding.
52 This is case-insensitive.
65 accepts standard input.
66 Output is written to standard output.
67 Unicode characters in the ASCII range are printed as regular ASCII
68 characters; those above this range are printed using the
73 If input bytes are improperly formed in the current encoding, they're
74 passed unmodified to standard output.
83 encodings as arguments to
88 An encoding is chosen according to the following steps:
91 From the argument passed to
94 If a BOM exists, utf\-8 encoding is selected.
96 From the argument passed to
99 If all else fails, Latin\-1 is used.
101 .\" .Sh IMPLEMENTATION NOTES
102 .\" Not used in OpenBSD.
103 .\" .Sh RETURN VALUES
104 .\" For sections 2, 3, & 9 only.
106 .\" For sections 1, 6, 7, & 8 only.
112 .\" For sections 1, 4, 6, 7, & 8 only.
114 .\" For sections 2, 3, & 9 only.
121 utility references the US-ASCII character set standard, ANSI_X3.4\-1968;
122 the Latin\-1 character set standard, ISO/IEC 8859\-1:1998; the UTF\-8
123 character set standard; and UCS (Unicode), ISO/IEC 10646.
127 utility first appeared in the GNU troff
129 system in December 2005, authored by Tomohiro Kubota and Werner
131 The implementation that is part of the
133 utility appeared in May 2011.
137 utility was written by
138 .An Kristaps Dzonsons Aq kristaps@bsd.lv .
141 .\" .Sh SECURITY CONSIDERATIONS
142 .\" Not used in OpenBSD.