From owner-freebsd-bugs Mon Mar 24 8:40:28 2003 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1ABF937B401 for ; Mon, 24 Mar 2003 08:40:23 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 892D243FCB for ; Mon, 24 Mar 2003 08:40:19 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h2OGeJNS014470 for ; Mon, 24 Mar 2003 08:40:19 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h2OGeJIo014465; Mon, 24 Mar 2003 08:40:19 -0800 (PST) Date: Mon, 24 Mar 2003 08:40:19 -0800 (PST) Message-Id: <200303241640.h2OGeJIo014465@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: KAJIMOTO Masato Subject: Re: bin/44504: tcsh-6.12.00's "source" command ignore commands over 4kb with ja_JP.EUC locale Reply-To: KAJIMOTO Masato X-Spam-Status: No, hits=-6.4 required=5.0 tests=AWL version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/44504; it has been noted by GNATS. From: KAJIMOTO Masato To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org Cc: kajimoto@iijmio-mail.jp Subject: Re: bin/44504: tcsh-6.12.00's "source" command ignore commands over 4kb with ja_JP.EUC locale Date: Tue, 25 Mar 2003 01:32:00 +0900 (JST) Please someone commit this patch to fix tcsh-6.12.00's bug. diff -c src/contrib/tcsh.orig/sh.c src/contrib/tcsh/sh.c *** src/contrib/tcsh.orig/sh.c Sat Jul 6 01:28:16 2002 --- src/contrib/tcsh/sh.c Tue Mar 4 21:10:53 2003 *************** *** 1010,1016 **** --- 1010,1026 ---- * descriptor to hold the name of the script (setuid case) and this name * mustn't be lost by closing the fd too soon. */ + #ifdef NLS_BUGS + #ifdef NLS_CATALOGS + (void)catclose(catd); + #endif /* NLS_CATALOGS */ + #endif /* NLS_BUGS */ closem(); + #ifdef NLS_BUGS + #ifdef NLS_CATALOGS + nlsinit(); + #endif /* NLS_CATALOGS */ + #endif /* NLS_BUGS */ /* * Consider input a tty if it really is or we are interactive. but not for *************** *** 2360,2372 **** void initdesc() { - #ifdef NLS_BUGS - #ifdef NLS_CATALOGS - (void)catclose(catd); - #endif /* NLS_CATALOGS */ - #endif /* NLS_BUGS */ - - didfds = 0; /* 0, 1, 2 aren't set up */ (void) close_on_exec(SHIN = dcopy(0, FSHIN), 1); (void) close_on_exec(SHOUT = dcopy(1, FSHOUT), 1); --- 2370,2375 ---- *************** *** 2377,2387 **** #endif /* CLOSE_ON_EXEC */ isdiagatty = isatty(SHDIAG); isoutatty = isatty(SHOUT); - #ifdef NLS_BUGS - #ifdef NLS_CATALOGS - nlsinit(); - #endif /* NLS_CATALOGS */ - #endif /* NLS_BUGS */ } --- 2380,2385 ---- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message