1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/japanese/tcsh/files/patch-ag
Masafumi Max NAKANE f1e18afc00 Upgrade, 6.07.6b4 -> 6.07.9b5.
Provide the Japanese catalog files as separate ports.
Update maintainer's e-mail address.

PR:		7692
Submitted by:	maintainer
1998-08-30 21:14:47 +00:00

29 lines
626 B
Plaintext

--- ../../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 @@
struct command *c;
{
Char *vp, *lp;
+#ifdef __FreeBSD__
+ static int catclosed = 0;
+#endif
USE(c);
if (*++v == 0) {
@@ -1338,7 +1341,15 @@
# ifdef LC_MESSAGES
(void) setlocale(LC_MESSAGES, "");
# endif /* LC_MESSAGES */
+# ifdef __FreeBSD__
+ /* This code is to avoid bug. */
+ if (catclosed)
+ (void) catclose(catd);
+ else
+ catclosed = 1;
+# else
(void) catclose(catd);
+# endif /* __FreeBSD__ */
nlsinit();
# endif /* NLS_CATALOGS */
# ifdef LC_CTYPE