Bug 7283 - tcsh / LC_CTYPE - obscure problem.
Summary: tcsh / LC_CTYPE - obscure problem.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Andrey A. Chernov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1998-07-14 23:30 UTC by sec
Modified: 2000-04-05 18:29 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sec 1998-07-14 23:30:01 UTC
tcsh produces obscure error-message when sourcing an shell-script which
contains an 'setenv LC_CTYPE'.

The problem does not exist in interactive mode.

Fix: 

none known.
How-To-Repeat: 
	

	
# start fresh tcsh without sourcing any startup-scripts.
matrix:~>tcsh -f

# This is our test-script. Problem does also appear with system-wide
# /etc/csh.login file
> cat /tmp/test
setenv LC_CTYPE foo

# We source it, it emits an error-message.
> source /tmp/test
^E¢@^Ò@x@^Z^ALoad: Command not found.
^A^FÌALAÊ@^Â^HERROR:: Too many arguments.

# This is repeatable.
> source /tmp/test
^E¢@^Ò@x@^Z^ALoad: Command not found.
^A^FÌALAÊ@^Â^HERROR:: Too many arguments.

# In interactive mode, this doesn't happen.
> setenv LC_CTYPE foo

# After interactive test, sourcing doesn't emit an error message any more.
> source /tmp/test

# That's it.
> exit
Comment 1 Steve Price freebsd_committer freebsd_triage 1998-07-20 04:21:01 UTC
Responsible Changed
From-To: freebsd-ports->ache

Over to port maintainer. 

Comment 2 Jukka Ukkonen 1999-06-22 13:11:41 UTC
	This problem is probably not a "ports" class thing at all.
	It seems to originate in the system's ctype/runetype library
	functions. With some other ctype implementations it does not
	manifest itself at all. (Ref. bin/12272)

		// jau@iki.fi
Comment 3 sec 2000-03-05 04:17:02 UTC
I just verified that this Problem does no longer exist under
FreeBSD 4.0-20000214-CURRENT i386
with
tcsh-6.09.00        An extended C-shell with many useful features
so this PR can probably be closed now.

musinrouter$ tcsh -f
> source /tmp/foo
>

CU,
    Sec
-- 
          Hiroshima '45    Tsjernobyl '86   Windows '95
Comment 4 Will Andrews freebsd_committer freebsd_triage 2000-04-05 18:26:18 UTC
State Changed
From-To: open->closed

Originator reports (and I confirm) that this problem disappeared 
with more recent versions of tcsh.