Date: Mon, 24 Mar 2003 08:40:19 -0800 (PST) From: KAJIMOTO Masato <kajimoto@iijmio-mail.jp> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/44504: tcsh-6.12.00's "source" command ignore commands over 4kb with ja_JP.EUC locale Message-ID: <200303241640.h2OGeJIo014465@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR bin/44504; it has been noted by GNATS.
From: KAJIMOTO Masato <kajimoto@iijmio-mail.jp>
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303241640.h2OGeJIo014465>
