]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man8/iconvconfig.8
All pages: Remove the 5th argument to .TH
[thirdparty/man-pages.git] / man8 / iconvconfig.8
CommitLineData
63f2595f
MM
1.\" Copyright (C) 2014 Marko Myllynen <myllynen@redhat.com>
2.\"
e4a74ca8 3.\" SPDX-License-Identifier: GPL-2.0-or-later
63f2595f 4.\"
45186a5d 5.TH ICONVCONFIG 8 2021-08-27 "Linux man-pages (unreleased)"
63f2595f
MM
6.SH NAME
7iconvconfig \- create iconv module configuration cache
8.SH SYNOPSIS
9.B iconvconfig
10.RI [ options ]
11.RI [ directory ]...
12.SH DESCRIPTION
13The
b757a2ea 14.BR iconv (3)
63f2595f
MM
15function internally uses
16.I gconv
17modules to convert to and from a character set.
18A configuration file is used to determine the needed modules
19for a conversion.
20Loading and parsing such a configuration file would slow down
b757a2ea
MK
21programs that use
22.BR iconv (3),
23so a caching mechanism is employed.
2a86152e 24.PP
63f2595f
MM
25The
26.B iconvconfig
27program reads iconv module configuration files and writes
b757a2ea 28a fast-loading gconv module configuration cache file.
2a86152e 29.PP
91085d85 30In addition to the system provided gconv modules, the user can specify
63f2595f
MM
31custom gconv module directories with the environment variable
32.BR GCONV_PATH .
a7d99f7f 33However, iconv module configuration caching is used only when
63f2595f 34the environment variable
1ae6b2c7 35.B GCONV_PATH
63f2595f
MM
36is not set.
37.SH OPTIONS
38.TP
39.B "\-\-nostdlib"
40Do not search the system default gconv directory,
41only the directories provided on the command line.
42.TP
43.BI \-o " outputfile" ", \-\-output=" outputfile
44Use
45.I outputfile
46for output instead of the system default cache location.
47.TP
48.BI \-\-prefix= pathname
49Set the prefix to be prepended to the system pathnames.
50See FILES, below.
51By default, the prefix is empty.
52Setting the prefix to
53.IR foo ,
54the gconv module configuration would be read from
1ae6b2c7 55.I foo/usr/lib/gconv/gconv\-modules
63f2595f 56and the cache would be written to
b49c2acb 57.IR foo/usr/lib/gconv/gconv\-modules.cache .
63f2595f 58.TP
fb787570 59.BR \-? ", " \-\-help
63f2595f
MM
60Print a usage summary and exit.
61.TP
62.B "\-\-usage"
63Print a short usage summary and exit.
64.TP
fb787570 65.BR \-V ", " \-\-version
63f2595f
MM
66Print the version number, license, and disclaimer of warranty for
67.BR iconv .
68.SH EXIT STATUS
777411ae 69Zero on success, nonzero on errors.
63f2595f
MM
70.SH FILES
71.TP
72.I /usr/lib/gconv
73Usual default gconv module path.
74.TP
b49c2acb 75.I /usr/lib/gconv/gconv\-modules
538ca136 76Usual system default gconv module configuration file.
63f2595f 77.TP
b49c2acb 78.I /usr/lib/gconv/gconv\-modules.cache
538ca136 79Usual system gconv module configuration cache.
111ccf7e
MK
80.PP
81Depending on the architecture,
82the above files may instead be located at directories with the path prefix
83.IR /usr/lib64 .
d282bb24 84.SH SEE ALSO
63f2595f
MM
85.BR iconv (1),
86.BR iconv (3)