### Customize a Locale

If you require a cultural environment that is not identical to any locale supplied with IBM C and C++ Compilers, you can create your own locale. The easiest way to create a locale is to modify one of the existing locale definition files supplied by IBM.

Use the steps listed below to customize and build an existing locale:

1. Use an existing `charmap` file to define the characters supported by your locale.
2. Determine what locale categories you require and define those categories so that they build the required cultural environment.
3. Create a locale source file that contains one category source definition for each category in your locale. You can use any editor to create this file.
4. Run the LOCALDEF utility. This utility produces a dynamic link library with the extension .LCL that implements your locale.
5. If you are shipping a locale object with your application, you must also supply Windows locale DLLs with your program.

Example: Customize a locale.

Internationalization

Supply DLLs for Locale Handling

Locale Naming Conventions
Locales Provided on OS/2
Locales Provided on Windows
LOCALDEF Utility