Internationalization and localization tools


ANSI Error Message Function

void verrx(int status, const char *format, va_list);

Internationalization (I18n) Function Overview

The verrx function is closely related to both the error and err functions.

Its similar to a call like error(status, 0, format, ...), however the program is exited even if status is zero, the parameters are passed in using the type va_list, and no error number string is printed.

Its also the same as the verr function except that no error number string is printed. Note that this feature distinguishes verrx from verr in that it does not have the embedded English error text problem, and therefore is more safe for internationalized applications.

I18n Issues

Prior to calling this function, ensure that the current locale is set properly by calling setlocale, as string formatting is dependent on the LC_NUMERIC locale category. See String Formatting in C and C++ for a discussion on locale-sensitive formatting in internationalized applications.

There is no ANSI wide character version of this function. The parameters will have to be converted to multibyte UTF-8 characters and then the verrx function can be used.

Recommended Replacements*

*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.

ANSI Error Message Functions

 

Lingoport internationalization and localization services and software