summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-shells/tcsh/files/tcsh-6.13.00-dspmbyte.patch')
-rw-r--r--app-shells/tcsh/files/tcsh-6.13.00-dspmbyte.patch60
1 files changed, 0 insertions, 60 deletions
diff --git a/app-shells/tcsh/files/tcsh-6.13.00-dspmbyte.patch b/app-shells/tcsh/files/tcsh-6.13.00-dspmbyte.patch
deleted file mode 100644
index e3aad1f940aa..000000000000
--- a/app-shells/tcsh/files/tcsh-6.13.00-dspmbyte.patch
+++ /dev/null
@@ -1,60 +0,0 @@
---- tcsh-6.13.00/tc.const.c.mbyte 2004-03-21 17:48:15.000000000 +0100
-+++ tcsh-6.13.00/tc.const.c 2004-08-18 10:48:34.322157016 +0200
-@@ -128,7 +128,7 @@
- Char STRKSJIS[] = { 's', 'j', 'i', 's', '\0' };
- Char STRKBIG5[] = { 'b', 'i', 'g', '5', '\0' };
- Char STRKUTF8[] = { 'u', 't', 'f', '8', '\0' };
--Char STRSTARKUTF8[] = { '*', 'u', 't', 'f', '8', '\0' };
-+Char STRSTARKUTF8[] = { '*', 'u', 't', 'f', '*', '8', '\0' };
- # ifdef MBYTEDEBUG /* Sorry, use for beta testing */
- Char STRmbytemap[] = { 'm', 'b', 'y', 't', 'e', 'm', 'a', 'p', '\0' };
- # endif /* MBYTEMAP */
---- tcsh-6.13.00/sh.glob.c.mbyte 2004-08-18 11:14:33.033196920 +0200
-+++ tcsh-6.13.00/sh.glob.c 2004-08-18 11:21:16.575849112 +0200
-@@ -987,12 +987,12 @@
- if (endstr == NULL)
- /* Exact matches only */
- for (p = blk; *p; p++)
-- gres |= t_pmatch(string, *p, &tstring, 0) == 2 ? 1 : 0;
-+ gres |= t_pmatch(string, *p, &tstring, 1) == 2 ? 1 : 0;
- else {
- /* partial matches */
- int minc = 0x7fffffff;
- for (p = blk; *p; p++)
-- if (t_pmatch(string, *p, &tstring, 0) != 0) {
-+ if (t_pmatch(string, *p, &tstring, 1) != 0) {
- int t = (int) (tstring - string);
- gres |= 1;
- if (minc == -1 || minc > t)
-@@ -1079,8 +1079,8 @@
- if (match)
- continue;
- if (rangec == '-' && *(pattern-2) != '[' && *pattern != ']') {
-- match = (globcharcoll(stringc, *pattern & TRIM, cs) <= 0 &&
-- globcharcoll(*(pattern-2) & TRIM, stringc, cs) <= 0);
-+ match = (globcharcoll(stringc, *pattern & TRIM, 0) <= 0 &&
-+ globcharcoll(*(pattern-2) & TRIM, stringc, 0) <= 0);
- pattern++;
- }
- else
-@@ -1093,7 +1093,8 @@
- *estr = string;
- break;
- default:
-- if ((patternc & TRIM) != stringc)
-+ if (cs ? (patternc & TRIM) != stringc
-+ : Tolower(patternc & TRIM) != Tolower(stringc))
- return (0);
- *estr = string;
- break;
---- tcsh-6.13.00/sh.set.c.mbyte 2004-03-21 17:48:14.000000000 +0100
-+++ tcsh-6.13.00/sh.set.c 2004-08-18 10:48:34.000000000 +0200
-@@ -1260,7 +1260,7 @@
-
- for (i = 0; dspmt[i].n; i++) {
- Char *estr;
-- if (t_pmatch(pcp, dspmt[i].n, &estr, 1) > 0) {
-+ if (dspmt[i].n[0] && t_pmatch(pcp, dspmt[i].n, &estr, 0) > 0) {
- set(CHECK_MBYTEVAR, Strsave(dspmt[i].v), VAR_READWRITE);
- update_dspmbyte_vars();
- break;