Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jul 1997 19:41:12 -0400
From:      Pierre Sarrazin <ps@CAM.ORG>
To:        freebsd-questions@FreeBSD.ORG
Subject:   LANG, LC_CTYPE, csh.login vs 2.2.2
Message-ID:  <33D3F398.23A@cam.org>

index | next in thread | raw e-mail

Hi. I have recently installed FreeBSD 2.2.2-RELEASE and I am getting
strange behavior when trying to login with a customized /etc/csh.login
that gives a value to the LANG or LC_TYPE environment variable.

If I use the following version of /etc/csh.login with a
"setenv LANG" statement uncommented, the script is executed when
I login but it never gets to the "echo 300" line. If I comment the
line, everything is fine, but I can't use the proper locale.

If I uncomment the "setenv LC_CTYPE" line, about the same thing
happens, but the script execution stops with about 15 characters
of garbage written to the terminal.

Any ideas I could try? I run a Pentium 200 MHz with 64M RAM, 3 ISA
ports and 4 PCI ports. I was previously running FreeBSD 2.1.0 and I
customized the csh.login of 2.2.2 by integrating most statements of
the version I ran under 2.1.0. I installed 2.2.2 over a newly
formatted partition.

---------------------------------------------------------------------------
echo START csh.login
# System-wide .login file for csh(1).
# Uncomment this to give you the default 4.2 behavior, where disk 
# information is shown in K-Blocks
setenv BLOCKSIZE	K
# Uncomment this two lines to activate Russian locale
# setenv LANG ru_RU.KOI8-R
# setenv MM_CHARSET KOI8-R
# Uncomment this two lines to activate Italian locale
# setenv LANG it_IT.ISO_8859-1
# setenv MM_CHARSET ISO-8859-1
# For full locales list check /usr/share/locale/*

# For the fr_CA locale:
#setenv LANG fr_CA.ISO_8859-1  # this is the line that causes the
behavior
setenv MM_CHARSET ISO-8859-1

echo 100

# Read system messages
# msgs -f
# Allow terminal messages
# mesg y

# Version du 97-07-20 par Pierre Sarrazin.

# To make vi 8-bit clean (96-05-13):
#setenv LC_CTYPE lt_LN.ISO_8859-1  # cette ligne fait freaker le systeme
--PS 970720

# Controle de flot CTS/RTS pour le momem (95-12-04)
if (`tty` == /dev/ttyd1) stty crtscts
# Pour eviter les coredump:
limit coredumpsize 0

echo 200

set path=(/usr/local/bin /bin /usr/bin /usr/X11R6/bin /usr/games)
mesg y	# pour permettre les talk et les write

echo 300

setenv XWINHOME /usr/X11R6
setenv XFILESEARCHPATH
/usr/lib/X11/%L/%T/%N%C%S:/usr/lib/X11/%l/%T/%N%C%S:/usr/lib/X11/%T/%N%C%S:/usr/lib/X11/%L/%T/%N%S:/usr/lib/X11/%l/%T/%N%S:/usr/lib/X11/%T/%N%S

echo 400

setenv MANPATH /usr/local/man:/usr/share/man:$XWINHOME/man

#setenv PAGEINITLYNX /usr/local/txt/public_html/index.html

setenv MAIL /var/mail/$USER

echo FIN csh.login
---------------------------------------------------------------------------

-- 
Pierre Sarrazin <ps@cam.org> [Montreal]



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?33D3F398.23A>