How does Solaris8 change the default language environment?

Source: Internet
Author: User
Article Title: How does Solaris8 change the default language environment. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
The term "language environment" and "type" have the following relationships:
  
. The Language Environment includes language specifications, regions, code sets, and other features. The simplified Chinese Solaris operating environment includes the following language environments:
  
C -- for an English ASCII environment, the language environment must be set to C.
  
En -- for the simplified Chinese EUC environment, the language environment must be set to zh.
  
Zh. GBK -- for the simplified Chinese GBK environment, the language environment must be set to zh. GBK.
  
En. UTF-8-for simplified Chinese Unicode environments, the language environment must be set to zh. UTF-8.
  
A. category is a feature set that forms a language environment. For example, the performance of character display or time/date expression depends on the language environment. The simplified Chinese Solaris type includes the following:
  
LC_CTYPE specifies the character types for classification and conversion.
  
LC_TIME is the language environment used to express the date and time.
  
LC_NUMERIC sets the language environment for digital expression (also used for I/O ).
  
LC_MONETARY sets the language environment for currency expression.
  
LC_MESSAGES sets the language environment of the message to the user.
  
The LC_COLLATE setting depends on the character string verification in the language environment.
  
The environment variable LC_ALL explicitly sets the same language environment for all types; it has the highest priority. If the type or LC_ALL is not set, the LANG environment variable determines the type setting.
  
You can use shell environment variables to change the language environment settings. Name an existing language environment for each type. The setlocale () function directly sets or queries the settings of these types. The internationalization function uses these settings to access the corresponding tables in the required language environment.
  
Environment variables can be used to indirectly set the type: when setlocale () sets the type to the default value of the location, it uses the setting value of each environment variable to set the relevant type. The setlocale () function does not change the set values of environment variables, but reads their set values.
  
Follow these steps to change the default language environment of the system.
  
1. add or change this line to edit the/etc/default/init file.
  
Replace locale with C, zh, zh. GBK, or zh. UTF-8.
  
LANG = locale
  
2. exit all users from CDE.
  
3. type the following command:
  
% Su
#/Usr/dt/bin/dtconfig-kill
  
4. type the following command:
  
% Su
# Reboot
  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.