1998-08-30 21:14:47 +00:00
|
|
|
--- ../../tcsh-6.07.09/sh.func.c Wed Jul 22 01:03:33 1998
|
|
|
|
+++ sh.func.c Wed Jul 22 01:04:47 1998
|
|
|
|
@@ -1286,6 +1286,9 @@
|
1997-12-27 19:04:12 +00:00
|
|
|
struct command *c;
|
|
|
|
{
|
|
|
|
Char *vp, *lp;
|
|
|
|
+#ifdef __FreeBSD__
|
|
|
|
+ static int catclosed = 0;
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
USE(c);
|
|
|
|
if (*++v == 0) {
|
1998-08-30 21:14:47 +00:00
|
|
|
@@ -1338,7 +1341,15 @@
|
1998-07-04 03:20:40 +00:00
|
|
|
# ifdef LC_MESSAGES
|
1997-12-27 19:04:12 +00:00
|
|
|
(void) setlocale(LC_MESSAGES, "");
|
1998-07-04 03:20:40 +00:00
|
|
|
# endif /* LC_MESSAGES */
|
|
|
|
+# ifdef __FreeBSD__
|
1997-12-27 19:04:12 +00:00
|
|
|
+ /* This code is to avoid bug. */
|
|
|
|
+ if (catclosed)
|
1998-07-04 03:20:40 +00:00
|
|
|
+ (void) catclose(catd);
|
1997-12-27 19:04:12 +00:00
|
|
|
+ else
|
1998-07-04 03:20:40 +00:00
|
|
|
+ catclosed = 1;
|
|
|
|
+# else
|
|
|
|
(void) catclose(catd);
|
1997-12-27 19:04:12 +00:00
|
|
|
+# endif /* __FreeBSD__ */
|
|
|
|
nlsinit();
|
1998-07-04 03:20:40 +00:00
|
|
|
# endif /* NLS_CATALOGS */
|
1997-12-27 19:04:12 +00:00
|
|
|
# ifdef LC_CTYPE
|