ILE C/C++ Programmer's Guide


SAA and POSIX *Locale Definitions

If an ILE C program is compiled with LOCALETYPE(*LOCALE) and setlocale() is not called or if it is called with locale name C or POSIX, the default C environment used is that specified in the POSIX locale definition source in the QSYSLOCALE library. This locale definition is slightly different from the default C locale for type *CLD. Another locale definition source member that is called SAA is provided in the QSYSLOCALE library for compatibility with the default C locale of type *CLD.

If you wish to migrate your application from locales of type *CLD to locales of type *LOCALE, but you want to be compatible with the default C locale of type *CLD, use the SAA locale definition source member in the QSYSLOCALE library to create a locale with the CRTLOCALE command. Then use the name of this locale when you call setlocale() in your application.

The differences between the SAA and POSIX locale definitions are as follows:


[ Top of Page | Previous Page | Next Page | Table of Contents ]