Glover George wrote:
>
> I recently upgraded to RH 6.2 and came across a problem (well, for me
> anywayz). Now when I run a SCO program under my RH system, I get this
> returned on stderr:
>
> libc: setlocale: LC_CTYPE: unable to open /etc/default/lang
> libc: setlocale: LC_NUMERIC: unable to open /etc/default/lang
> libc: setlocale: LC_TIME: unable to open /etc/default/lang
> libc: setlocale: LC_COLLATE: unable to open /etc/default/lang
> libc: setlocale: LC_MESSAGES: unable to open /etc/default/lang
> libc: setlocale: LC_MONETARY: unable to open /etc/default/lang
>
> There is no /etc/default/lang on the system. Simply setting it up with the
> values I get from locale (LANG=en_US, etc...) and it comes up with this:
>
> libc: setlocale: LC_CTYPE: LANG= syntax error in /etc/default/lang
> libc: setlocale: LC_CTYPE: no LANG= line in /etc/default/lang
> libc: setlocale: LC_NUMERIC: LANG= syntax error in /etc/default/lang
> libc: setlocale: LC_NUMERIC: no LANG= line in /etc/default/lang
> libc: setlocale: LC_TIME: LANG= syntax error in /etc/default/lang
> libc: setlocale: LC_TIME: no LANG= line in /etc/default/lang
> libc: setlocale: LC_COLLATE: LANG= syntax error in /etc/default/lang
> libc: setlocale: LC_COLLATE: no LANG= line in /etc/default/lang
> libc: setlocale: LC_MESSAGES: LANG= syntax error in /etc/default/lang
> libc: setlocale: LC_MESSAGES: no LANG= line in /etc/default/lang
> libc: setlocale: LC_MONETARY: LANG= syntax error in /etc/default/lang
> libc: setlocale: LC_MONETARY: no LANG= line in /etc/default/lang
>
> So my question is basically how do I get rid of these messages (I can't
> simply redirect stderr to /dev/null because the program will not run like
> that -- not to mention I want my stderr!
>
> Any help would be highly appreciated. The version of iBCS2 is
> ibcs-2.1-981105.
unset LANG or remove i8n (somewhere in /etc, use find; sysconfig
if I can recall correctly...)
--
+---| Netscape Communicator 4.x |---| Powered by Linux 2.2.x |---+
|/v\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext 317 GSM: +62-816-1972-051 |
+--------| http://www.rad.net.id/users/personal/s/supes |--------+