Description improvements. Closes: #549450 (Thanks, Justin B Rye)
[moreutils.git] / isutf8.docbook
blobf9c9eb59e9e15197e686a25a93d8785e4522696a
1 <?xml version="1.0" encoding="utf-8"?>
3 <!--
5 Copyright 2006 Lars Wirzenius (liw@iki.fi)
7 This program is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 2 of the License, or (at your
10 option) any later version.
12 This program is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15 Public License for more details.
17 You should have received a copy of the GNU General Public License along
18 with this program; if not, write to the Free Software Foundation, Inc.,
19 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 -->
23 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.4//EN"
24 "file:///usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd"
25 []>
27 <refentry>
28 <refentryinfo>
29 <address>
30 <email>liw@iki.fi</email>
31 </address>
32 <author>
33 <firstname>Lars</firstname>
34 <surname>Wirzenius</surname>
35 </author>
36 <date>2006-02-19</date>
37 </refentryinfo>
39 <refmeta>
40 <refentrytitle>isutf8</refentrytitle>
41 <manvolnum>1</manvolnum>
42 </refmeta>
44 <refnamediv>
45 <refname>isutf8</refname>
46 <refpurpose>check whether files are valid UTF-8</refpurpose>
47 </refnamediv>
49 <refsynopsisdiv>
50 <cmdsynopsis>
51 <command>isutf8</command>
52 <arg><option>-hq</option></arg>
53 <arg><option>--help</option></arg>
54 <arg><option>--quiet</option></arg>
55 <group choice="opt">
56 <arg rep="repeat"><replaceable>file</replaceable></arg>
57 </group>
58 </cmdsynopsis>
59 </refsynopsisdiv>
61 <refsect1>
62 <title>DESCRIPTION</title>
64 <para><command>isutf8</command> checks whether files are
65 syntactically valid UTF-8. Input is either files named on the
66 command line, or the standard input. Notices about files with
67 invalid UTF-8 are printed to standard output.</para>
69 </refsect1>
71 <refsect1>
72 <title>OPTIONS</title>
74 <variablelist>
76 <varlistentry>
77 <term><option>-h</option></term>
78 <term><option>--help</option></term>
79 <listitem>
80 <para>Print out a help summary.</para>
81 </listitem>
82 </varlistentry>
84 <varlistentry>
85 <term><option>-q</option></term>
86 <term><option>--quiet</option></term>
87 <listitem>
88 <para>Don't print messages telling which files are
89 invalid UTF-8, merely indicate it with the exit
90 status.</para>
91 </listitem>
92 </varlistentry>
94 </variablelist>
96 </refsect1>
98 <refsect1>
99 <title>EXIT STATUS</title>
101 <para>If the file is valid UTF-8, the exit status is zero.
102 If the file is not valid UTF-8, or there is some
103 error, the exit status is non-zero.</para>
105 </refsect1>
107 <refsect1>
108 <title>SEE ALSO</title>
110 <para>
111 <citerefentry>
112 <refentrytitle>utf8</refentrytitle><manvolnum>7</manvolnum>
113 </citerefentry>
114 </para>
116 </refsect1>
117 </refentry>