Technical article 109653

After setting the default LANG on my system, locale(C) still reports LANG=C.

OpenServer 5.0.5

Written · Last revised

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>/8859

This 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/mktables

This problem has been fixed in SCO OpenServer Release 5.0.6.

From the Xinuos technical article database, record 109653. Reproduced with permission. The original is at www.sco.com/ta/109653, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.