SunPCi User's Guide

The $LANG Variable

There are two Solaris commands—/usr/bin/dos2unix and /usr/bin/unix2dos—that enable you to specify code pages. 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:


C:\> dos2unix -850 task_list task_list  

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:


% env | grep LANG

If you do not have the $LANG variable set, or if it is set to anything but the settings listed in Table B–4, SunPCi software uses the default US code page 437 and the en_US (English-US) $LANG setting.

Table B–4 $LANG Variable Settings

$LANG Variable Setting

Language/Territory 

Default “C” locale 

es_AR 

Arabic 

da 

Danish 

de 

German 

de_AT 

Austrian German 

de_CH 

Swiss German 

el 

Greek 

en_AU 

Australian English 

en_IE 

Irish English 

en_NZ 

New Zealand English 

en_UK 

UK English 

en_US 

US English 

es 

Spanish 

es_BO 

Bolivian Spanish 

es_CL 

Chilean Spanish 

es_CO 

Colombian Spanish 

es_CR 

Costa Rican Spanish 

es_EC 

Ecuadorian Spanish 

es_GT 

Guatemalan Spanish 

es_MX 

Mexican Spanish 

es_NI 

Nicaraguan Spanish 

es_PA 

Panamanian Spanish 

es_PE 

Peruvian Spanish 

es_PY 

Paraguayan Spanish 

es_SV 

Salvadoran Spanish 

es_UY 

Uruguayan Spanish 

es_VE 

Venezuelan Spanish 

fr 

French 

fr_BE 

Belgian French 

fr_CA 

Canadian French 

fr_CH 

Swiss French 

it 

Italian 

ja 

Japanese 

ko 

Korean 

sv 

Swedish 

zh 

Chinese 

zh_TW 

Chinese Taiwan 

Note that the settings listed in the table are the ones that SunPCi supports; it does not list all the languages Solaris supports.