Vi18nGetLocaleCharset


The Vi18nGetLocaleCharset function returns the character set name for the specified locale.


Syntax

Vi18nError Vi18nGetLocaleCharset(char *locale, char **charset)

Arguments

 


locale

char*   A pointer to the locale name.

charset

char**   A handle to the character set name for the locale.


Returns

This function returns one of the following error codes:

Vi18nSuccess for success

 

Vi18nError_* for an error code identified in Error Codes

 

Vi18nFail for a non-specific error

 


Discussion

The locale name and the character set name are both case insensitive. For a list of locales and their respective character sets, see Appendix A of the Verity Locale Configuration Guide. Memory for the character set’s handle (charset output argument) must be freed by the caller.