Problem
I have selected the correct Locale information for my Country during Initial System Load or through the International Settings Manager, but the output from locale(C) does not reflect this information. locale(C) is reporting LANG=C. This is affecting other utilities like vi(C) which displays 8-bit characters as octal values.
Another example of this problem shows up when setting the LANG environment variable in the shell and then finding that the locale(C) is still showing LANG=C. For example:
# LANG=norwegian_norway.8859; export LANG# locale
LANG=C
LC_CTYPE="C"
LC_COLLATE="C"
LC_TIME="C"
LC_NUMERIC="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=This is incorrect; in fact, it should display this:
# locale
LANG=norwegian_norway.8859
LC_CTYPE="norwegian_norway.8859"
LC_COLLATE="norwegian_norway.8859"
LC_TIME="norwegian_norway.8859"
LC_NUMERIC="norwegian_norway.8859"
LC_MONETARY="norwegian_norway.8859"
LC_MESSAGES="norwegian_norway.8859"
LC_ALL= Cause
There are some locale files missing from:
/usr/lib/lang/<language>/<country>/8859This affects the following <language> directories: dutch, danish, finnish, italian, norwegian, portuguese, spanish and swedish. The missing files tend to be collate, ctype and numeric.
Solution
The missing files can be regenerated by executing the mktables script when logged in as the root user:
# /usr/lib/lang.src/mktablesThis problem has been fixed in SCO OpenServer Release 5.0.6.