HP-UX Reference (11i v2 07/12) - 1 User Commands A-M (vol 1)

e
eucset(1) eucset(1)
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 set-
ting, 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 internationalization
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:
eucset 2:2
To set the code width to that of UTF8,enter:
eucset -c UTF8
To set the code width to that of GB18030,enter:
eucset -c GB18030
WARNINGS
The cswidth argument does not include the SS2 or SS3 bytes in the byte width values.
This command is not specified by standards, may not be available on other vendor’s systems, and may be
subject to change or obsolescence in a future release.
AUTHOR
eucset was developed by OSF and HP.
SEE ALSO
dtterm(1), ldterm(7).
312 Hewlett-Packard Company 2 HP-UX 11i Version 2: December 2007 Update