HP Operations Manager for Windows

Using APIs in Internationalized Environments


All HPOM API functions are internationalized. This means that they will initialize the language setting, check the codeset for compatibility, and convert codesets if necessary, provided your API programs support Native Language Support (NLS) environments.

When writing API programs for internationalized environments, you must ensure that your programs do select the appropriate locale. In C programs, you do this by calling the function setlocale() at the beginning of your program.

It is recommended to use setlocale(LC_ALL,""). The category LC_ALL names the program's entire locale. "" adopts the setting of the current shell.