Internationalization and localization tools


ANSI Error Message Function

void psignal(int signum, const char *message);

Internationalization (I18n) Function Overview

This function prints a message describing the signal signum to the standard error output stream stderr.

If you call psignal with a message that is either a null pointer or an empty string, psignal just prints the message corresponding to signum, adding a trailing newline.

If you supply a non-null message argument, then psignal prefixes its output with this string. It adds a colon and a space character to separate the message from the string corresponding to signum.

I18n Issues

This function should not be relied upon to print error messages in any language other than English, and therefore should be avoided in an internationalized application. However, its worth noting that in some limited instances it still may be useful. For example, for debugging, or for writing to log files that will not be viewed by the end user.

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 psignal 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