eucset.1 (2010 09)
e
eucset(1) eucset(1)
The cswidth argument in the eucset command line is a character string that describes the character
widths for codesets 1 through 3. This command does not allow the user to modify the settings for codeset
0. The character string is of the following format:
X1 [:Y1 ],X2 [:Y2 ],X3 [:Y3 ]
X1 The number of bytes required to encode a character in codeset class 1.
Y1 The number of display columns needed to display characters in this class.
X2 The number of bytes required to encode a character in codeset 2, not counting the SS2 byte,
Y2 The number of display columns for codeset 2 characters.
X3 The number of bytes needed to encode characters in codeset 3, not counting the SS3 byte,
Y3 The number of display columns required for these characters.
The values for the column widths may be omitted if they are equal to the number of encoding bytes. If
the encoding value of any of the EUC codesets is set to
0 (zero), then the codeset does not exist. See the
WARNINGS section for special warnings on the values of the cswidth argument.
If no cswidth argument is supplied, the
eucset
command uses the value of the CSWIDTH environment
variable. If this variable is not present, the following default string is substituted:
1:1,0:0,0:0
This default string designates that the environment uses a single byte EUC codeset that has characters in
the EUC codeset 1 format. If the environment uses a multibyte EUC codeset in the codeset 1 format, sin-
gle byte or multibyte EUC codesets in the codeset 2 or 3 format, or both, the default setting cannot be
used.
EXTERNAL INFLUENCES
Environment Variables
LANG Provide a default value for the internationalization variables that are unset or null.
If LANG is not specified or is set to the empty string, a default of
C (see lang(5)) is
used instead of
LANG. If any of the internationalization variables contain an
invalid setting, eucset behaves as if all internationalization variables are set to
C.
See environ (5).
LC_ALL If set to a nonempty string value, override the values of all other internationaliza-
tion variables.
LC_MESSAGES Determines the locale that should be used to affect the format and contents of diag-
nostic messages written to standard error and informative messages written to stan-
dard output.
NLSPATH Determines the location of message catalogs for the processing of LC_MESSAGES.
EXAMPLES
To display the encoding and display widths for the EUC codesets 1 to 3 in your environment, enter:
eucset -p
Assuming eucset has been previously used to set for ja_JP.eucJP, the entry generates the following:
cswidth 2:2,1:1,2:2
To change the current settings of the encoding and display widths for the EUC characters in codesets 1
and 2 to two bytes each, enter one of the following:
eucset 2:2,2:2,0:0
eucset 2,2,0
To set the encoding and display widths for the EUC characters in the locale ja_JP.eucJP,enter:
eucset 2:2,1:1,2:2
For zh_TW.eucTW,enter:
eucset 2:2,3:2
For ko_KR.eucKR,enter:
2 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: September 2010