[Contents] [Previous Chapter] [Next Chapter] [Index] [Help]


3  Locales

The Compaq Tru64 UNIX operating system supports different Chinese locales for different countries and areas. These include Taiwan, People's Republic of China (PRC), and Hong Kong. Table 3-1 shows the valid Chinese locales with different countries, codesets, and collating sequences.

Note

zh_TW is an alias of zh_TW.eucTW, and zh_CN is an alias of zh_CN.dechanzi.

Table 3-1: Chinese Locales

Codeset

Locale

Collation Sequence

DEC Hanyu zh_TW
zh_TW.dechanyu
zh_TW@ucs4
zh_TW.dechanyu@ucs4
zh_TW.dechanyu@radical
zh_TW.dechanyu@radical@ucs4
zh_TW.dechanyu@stroke
zh_TW.dechanyu@stroke@ucs4
zh_TW.dechanyu@chuyin
zh_TW.dechanyu@chuyin@ucs4
zh_HK.dechanyu
zh_HK.dechanyu@ucs4
Internal code
Internal code
Internal code
Internal code
Radical
Radical
Stroke
Stroke
Chuyin (Phonetic)
Chuyin (Phonetic)
Internal code
Internal code
Taiwanese EUC zh_TW.eucTW
zh_TW.eucTW@ucs4
zh_TW.eucTW@radical
zh_TW.eucTW@radical@ucs4
zh_TW.eucTW@stroke
zh_TW.eucTW@stroke@ucs4
zh_TW.eucTW@chuyin
zh_TW.eucTW@chuyin@ucs4
zh_HK.eucTW
zh_HK.eucTW@ucs4
Internal code
Internal code
Radical
Radical
Stroke
Stroke
Chuyin (Phonetic)
Chuyin (Phonetic)
Internal code
Internal code

Big-5

zh_TW.big5
zh_TW.big5@radical
zh_TW.big5@stroke
zh_TW.big5@chuyin
zh_HK.big5

Internal code
Radical
Stroke
Chuyin (Phonetic)
Internal code

DEC Hanzi zh_CN
zh_CN.dechanzi
zh_CN@ucs4
zh_CN.dechanzi@ucs4
zh_CN.dechanzi@radical
zh_CN.dechanzi@radical ucs4
zh_CN.dechanzi@stroke
zh_CN.dechanzi@stroke@ucs4
zh_CN.dechanzi@pinyin
zh_CN.dechanzi@pinyin@ucs4
zh_HK.dechanzi
zh_HK.dechanzi@ucs4
Internal code
Internal code
Internal code
Internal code
Radical
Radical
Stroke
Stroke
Pinyin (Phonetic)
Pinyin (Phonetic)
Internal code
Internal code
GBK zh_CN.GBK Internal code (however, all characters in GB 2312 character set are ordered first, followed by GBK extension characters)
GB18030 zh_CN.GB18030 Internal code (however, all characters in GB 2312 character set are ordered first, followed by GBK characters not already ordered, followed by GB18030 characters not already ordered)

UTF-8

zh_CN.UTF-8
zh_TW.UTF-8
zh_HK.UTF-8

zh_CN.GBK
zh_TW.dechanyu
zh_HK.dechanyu

Locales that support the same country and codeset are basically the same. The radical, stroke, pinyin, and chuyin modifiers after the at (@) sign specify different criterion for collation and sorting. Moreover, the characters defined in character set standards have collating precedence over user-defined characters, which, in turn, have precedence over undefined or reserved characters.

The ucs4 modifier indicates that UCS-4 is used as the internal processing code. The classification information, however, is not provided for the full set of UCS-4 characters, but only for the corresponding language.

If you are using DECwindows Motif, you can select the locale through the Language Menu of Session Manager. If you are using CDE, you can select the locale using the language menu on the CDE login screen. The applicable locales are shown in Table 3-1.

Figure 3-1: Chinese Language Names

Locale

Language Name

zh_TW

Chinese Taiwan

zh_TW.dechanyu

Chinese Taiwan (DEC Hanyu)

zh_TW.eucTW

Chinese Taiwan (EUC)

zh_TW.big5

Chinese Taiwan (Big5)

zh_TW.UTF-8

Chinese Taiwan (Unicode)

zh_HK.dechanyu

Chinese Hong Kong (DEC Hanyu)

zh_HK.dechanzi

Chinese Hong Kong (DEC Hanzi)

zh_HK.eucTW

Chinese Hong Kong (EUC)

zh_HK.big5

Chinese Hong Kong (Big5)

zh_HK.UTF-8

Chinese Hong Kong (Unicode)

zh_CN

Chinese China

zh_CN.dechanzi

Chinese China (DEC Hanzi)

zh_CN.GBK

Chinese China (GBK)

zh_CN.GB18030

Chinese China (GB18030)

zh_CN.UTF-8

Chinese China (Unicode)

Note

For DECwindows Motif and CDE, the locale modifier is ignored.


[Contents] [Previous Chapter] [Next Chapter] [Index] [Help]