Sun Microsystems 817-3630-11 Manuel D’Utilisation

Page de 256
192
 SunPCi III 3.2.1 User’s Guide • March 2004
The
$LANG
Variable
There are two Solaris commands that enable you to specify code pages:
/usr/bin/dos2unix
and
/usr/bin/unix2dos
. For example, to convert the
task_list
file, created with code page 850, from a DOS to a Solaris format, use the
dos2unix
command, and enter the following:
If the code page is not specified on the command line,
dos2unix
and
unix2dos
will check the
$LANG
environment variable to determine which code page to use. To
check whether your
$LANG
variable is set, enter the following in a Solaris command
window:
English (International)
061
437, 850
-
Portugal
351
860, 850
po
Finland
358
437, 850
su
Israel
972
437
-
Japan
081
ja
Korea
082
ko
Peoples Republic of China
086
ch
Taiwan
088
tn
C:\> dos2unix –850 task_list task_list
env | grep LANG
TABLE B-3
National Language Support
Country, Region, or Language
Country
Code
Prepared
Code Pages
Key
Code