This reference provides the following information:
The National Language Support (NLS) Checklist provides a way to analyze a program for NLS dependencies. By going through this list, one can determine what, if any, NLS functions must be considered. This is useful for both programming and testing. If you identify a set of NLS items that a program depends on, a test strategy can be developed. This facilitates a common approach to testing all programs.
All major NLS considerations have been identified. However, this list is not all-encompassing. There may be other NLS questions that are not listed.
If yes:
setlocale(LC_ALL, "")
setlocale(LC_MESSAGES, "")
catopen(catalog_name, NL_CAT_LOCALE)
If yes:
If yes:
If yes:
setlocale(LC_ALL, "")
If yes:
setlocale(LC_ALL, "")
If yes:
If not, the characters may be multibyte characters:
If yes:
setlocale(LC_ALL, "")
If yes:
If yes:
If yes:
setlocale(LC_ALL, "")
If yes:
If yes:
If not:If yes:
setlocale(LC_ALL, "")
If yes:
setlocale(LC_ALL, "")
If yes:
setlocale(LC_ALL, "")
If yes:
setlocale(LC_ALL, "")
If yes:
setlocale(LC_ALL, "")
Use the mblen subroutine to skip multibyte characters. Then, on encountering single-byte characters, check for equality. See checklist item 2.
OR
Convert the search character and the searched string to wide character form, and then use wide character search subroutines. See Wide Character String Search Subroutines for more information.
If yes:
If yes:
setlocale(LC_ALL, "")
If yes:
If yes:
The remaining checklist items are specific to the AIXwindows systems.
XtSetLanguageProc(NULL, NULL, NULL);
If yes:
If yes:
XtSetLanguageProc(NULL, NULL, NULL);
Some of the XmText widgets' arguments are defined in terms of character length instead of byte length. The cursor position is maintained in character position, not byte position.
If yes:
XtSetLanguageProc(NULL, NULL, NULL);
If yes:
If the response to all the above items is no, then the program probably has no NLS dependencies. In this case, you may not need the locale-setting subroutine setlocale and the catalog facility subroutines catopen and catgets.