This section summarizes the process of adding or changing a locale definition. For more detailed information on the locales file and how to edit it, read the remainder of the chapter.
To add or change a locale definition:
Make a copy of the locales file (locales.dat), found in the locales directory, in case problems occur with the edited version.
Edit the locales file: Add or change the desired entries in the appropriate platform-specific section.
Update localization environment variables (LC_ALL, LC_CTYPE, LC_MESSAGE, LC_TIME, LANG) as appropriate.
If you have added a new locale name and you want existing applications to use this new name in cs_locale calls, edit and recompile the applications as appropriate.