trchan(M)


trchan -- translate character sets

Syntax

trchan [ -ciko ] mapfile

Description

trchan performs mapping as a filter, using the same format of mapfile as mapchan(M) (described in mapchan(F)). This allows a file consisting of one internal character set to be ``translated'' to another internal character set.

trchan reads standard input, maps it, and writes to standard output. A mapfile must be given on the command line. Errors cause trchan to stop processing unless -c is specified.

The following options can be used with trchan:


-c
causes errors to be echoed on stderr, and processing is continued.

-i
specifies that the ``input'' section of the mapfile is used when translating data.

-k
specifies that the ``dead'' and ``compose'' sections of the mapfile are used when translating data.

-o
specifies that the ``output'' section of the mapfile is used when translating data.

The -i, -k and -o options can be specified in any combination; if none are specified, trchan uses the entire mapfile, as if all three were specified together.

Limitations

trchan currently ignores the control sections of the mapfile.

Files

/usr/lib/mapchan/*

See also

ascii(M), iconv(C), mapchan(F), mapchan(M)

Standards conformance

trchan is not part of any currently supported standard; it is an extension of AT&T System V provided by The Santa Cruz Operation, Inc.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 03 June 2005