IBM Support

AIX LOCALES: How do I install and apply UTF-8 locales?

Question & Answer


Question

My product requires a UTF-8 locale.

For example,

  • EN_US
  • en_US.UTF-8
  • EN_US.UTF-8

How do I install and apply UTF-8 locales?

Answer

NOTE: The English (US) Language is used in this document. In most cases, the same file set naming convention applies to other locales, but the locale names are different. 
See the complete list of supported locale names on the following technote: 
The following file sets provide en_US.UTF-8 and EN_US.UTF-8 locales:
bos.loc.utf.EN_US      7.3.2.0   # Base System Locale UTF Code
X11.loc.EN_US.base.lib 7.2.4.0   # AIXwindows Client Locale
X11.loc.EN_US.base.rte 7.2.4.0   # AIXwindows Locale
* NOTE: The "Base System Locale" file sets are the minimum requirement to provide server-side locale support.
Additionally, if CDE is installed on the system, the following is required:
X11.loc.EN_US.Dt.rte   7.2.4.0   # CDE Locale Configuration
These file sets have the following requisites:
bos.loc.com.utf
X11.fnt.ucs.ttf
X11.base.rte
X11.loc.en_US.base.rte
X11.fnt.ucs.ttf_extb
If you do not have base media, you must download an ISO image. The following technote provides guidance:
Installation Methods:
A) Command Line
installp -qaXgY -d <path of install images> bos.loc.utf.EN_US
# Or other Base System Locale file set
B) SMIT Install Options
smitty install_all
# Press F4 to select the INPUT device / directory for software    
#  Press F4 to select the  SOFTWARE to install      
#  Use the    "/" key to search for the fileset name       
              
C) SMIT Language Management Options
smitty mle_add_lang
This will present a screen that looks like this:
image 7370
Assuming you are in the inst.images directory of the ISO fileset:
 
# pwd
/mnt/usr/sys/inst.images
You can change the " INPUT device/directory for software" to "." for current directory, use Function 4 to search and select the language translations you want to install and proceed to install them.
Applying the newly installed locale:
Run the following command to change the language settings for the system
chlang -m EN_US EN_US
Or to use the new CLDR locale:
chlang -m en.UTF-8 en_US.UTF-8
Tip:
To learn more about the differences between these locales, read the following technote:
SUPPORT

If you require more assistance, use the following step-by-step instructions to contact IBM to open a case for software with an active and valid support contract.  

1.  Document (or collect screen captures of) all symptoms, errors, and messages related to your issue.

2.  Capture any logs or data relevant to the situation.

3.  Contact IBM to open a case:

   -For electronic support, see the IBM Support Community:
     https://www.ibm.com/mysupport
   -If you require telephone support, visit the IBM Directory of worldwide contacts. Click your country and use the Software phone number listed in the Contact information section.
      https://www.ibm.com/contact/global    

4.  Provide a clear, concise description of the issue.

5.  If the system is accessible, collect a system snap, and upload all of the details and data for your case.

 - For guidance, see: Working with IBM AIX Support: Collecting snap data

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG10","label":"AIX"},"Component":"g11n, globalization, locale","Platform":[{"code":"PF002","label":"AIX"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

Modified date:
28 May 2024

UID

ibm15692256