Informix Error -7207: LANG or LC_MONETARY environment variable is invalid.
Cause and resolution
LANG or LC_MONETARY environment variable is invalid.
Either the LANG or the LC_MONETARY environment variable setting is invalid. Set either or both variables to the values that your system supports.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-7207 fires when LANG or LC_MONETARY is set to a value the system doesn't support — per
the official guidance.
- An invalid
LANGsetting, per the official guidance — the first named cause. - An invalid
LC_MONETARYsetting, per the official guidance — the second named cause.
Solutions / Resolution
- Set
LANGand/orLC_MONETARYto values your system supports, per the official guidance.
Examples
Checking supported locales
$ locale -a
Diagnostic Checks
- Check the current
LANG/LC_MONETARYvalues against the system's supported locale list (locale -a), and correct any unsupported value.
Related Errors / Related Topics
- -7204 — "LANG or LC_COLLATE environment variable is invalid." The same class of
error, for
LC_COLLATE. - -7206 — "LANG or LC_CTYPE environment variable is invalid." The same class of error,
for
LC_CTYPE. - -7208 — "LANG or LC_NUMERIC environment variable is invalid." The same class of
error, for
LC_NUMERIC. - -7209 — "LANG or LC_TIME environment variable is invalid." The same class of error,
for
LC_TIME.
LANG or LC_MONETARY is set to a value the system doesn't support — check against locale -a and correct it.