Technical article 105796

Using a non-posix language causes syntax errors in /etc/default/lang at bootup.

OpenServer 5.0.4

Written · Last revised

Problem

I installed OpenServer 5.0.4 and chose a non-POSIX language such as english_us.ascii. At startup, error messages similar to the following are displayed:

libc:setlocale:LC_TYPE::LANG= syntax error /etc/default/lang
FATAL_ERROR: see /usr/lib/sco/oadb/caldata/calsrvlog.

I followed the instructions in TA105237, "I changed system locale and now the calendar server does not start", but this did not help.

Solution

Do _not_ use the workaround detailed in TA105237, which is intended for SCO OpenServer Release 5.0.0 and 5.0.2. The format of the file /usr/adm/ISL/iqm_file has changed in OpenServer 5.0.4.

Instead, take these steps:
1. Log in as root.

2. Using your preferred text editor, edit the default language system locale file /etc/default/lang so that first line without the # looks like the following:

LANG=C_C.C

3. Using your preferred text editor, edit the calendar server startup file /etc/rc2.d/P95calserver and add the following lines, just after the comments that begin with #.

LANG=C_C.C
export LANG

4. Bring up the system in multiuser mode.

NOTE:     If you want your system to run in a foreign language
          (such as German) and during installation you choose the
          posix LANG de_DE.ISO8859-1, the calendar server will work
          without problem. However, if you choose to change the LANG
          to either posix or non-posix, the P95calserver will need to
          be amended.

See also

TA105237, "I changed system locale and now the calendar server does not start."

From the Xinuos technical article database, record 105796. Reproduced with permission. The original is at www.sco.com/ta/105796, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

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.