International Language Environments Guide for Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

Setting the System's Default Locale

In previous Oracle Solaris releases the default system locale was configured in the /etc/default/init file. In Oracle Solaris 11, the settings have been moved to the corresponding properties of the svc:/system/environment:init service. Service properties can be edited using the svccfg(1M) command. For example, to change the default system locale to fr_FR.UTF-8, you would run the following commands:

# svccfg -s svc:/system/environment:init setprop environment/LANG = astring: \
fr_FR.UTF-8

The service has to be refreshed for the change to take effect:

# svcadm refresh svc:/system/environment

The value of the service property can be verified by the following command:

# svccfg -s svc:/system/environment:init listprop environment/LANG