components/tcsh/patches/003.locale.patch
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Thu, 14 Jan 2016 10:01:14 -0800
changeset 5271 195e24ffa71a
parent 1073 c80b2ce240a9
permissions -rw-r--r--
22527103 update tcsh to 6.19.00
--- tcsh-6.19.00/sh.c.orig	Tue May 26 11:09:46 2015
+++ tcsh-6.19.00/sh.c	Tue May 26 11:10:09 2015
@@ -176,17 +176,10 @@
     size_t len;
     int add_LOC = 1;
     int add_lang = 1;
-    char trypath[MAXPATHLEN];
-    struct stat st;
 
     if (path == NULL)
         return;
 
-    (void) xsnprintf(trypath, sizeof(trypath), "%s/en/LC_MESSAGES/tcsh.cat",
-	path);
-    if (stat(trypath, &st) == -1)
-	return;
-
     if ((old = getenv("NLSPATH")) != NULL)
         len = strlen(old) + 1;	/* don't forget the colon. */
     else
--- tcsh-6.19.00/sh.func.c.orig	Tue May 26 11:10:46 2015
+++ tcsh-6.19.00/sh.func.c	Tue May 26 11:11:47 2015
@@ -2657,6 +2657,8 @@
 
     if (adrof(STRcatalog) != NULL)
 	catalog = xasprintf("tcsh.%s", short2str(varval(STRcatalog)));
+/* for compatibility */
+#undef NL_CAT_LOCALE
 #ifdef NL_CAT_LOCALE /* POSIX-compliant. */
     /*
      * Check if LC_MESSAGES is set in the environment and use it, if so.