localedef messages

This topic contains the localedef return codes and messages. The localedef utility returns the following return codes:
0
No errors were detected and the locales were generated successfully.
4
Warning messages were issued and the locales were generated successfully, or error messages were issued but the BLDERR option was specified.
4
Warning or errors were detected and the locale was not generated.
The messages issued by the localedef utility have the following format.
EDCnnnn ss text <%n$x>
nnnn
Error message number
ss
Error severity
10
Warning message
30
Error message
40
Severe error
%n$x
Substitution variable
%
The start of the substitution variable
n
The number that represents the line position of the variable
$
A delimiter
x
The kind of variable (d=decimal, c=character, s=string)

Warning messages will be issued when the FLAG(E) option is not specified. The default FLAG(W), will produce warnings. When warning messages (severity of 10) are issued, the minimum return code from the localedef utility is 4.

When error messages (severity of 30) are issued, the locale is built only if the BLDERR option is specified. The default is NOBLDERR. If BLDERR is specified, the return code would be set to a minimum of 4. If error messages are issued and NOBLDERR was specified (or by default), the return code will be set to a minimum of 8.

When severe error messages (severity of 40) are issued, the locale is not built and the return code from the localedef utility is 12.