diff options
Diffstat (limited to 'chinese/pine4/files/patch-ai')
-rw-r--r-- | chinese/pine4/files/patch-ai | 154 |
1 files changed, 90 insertions, 64 deletions
diff --git a/chinese/pine4/files/patch-ai b/chinese/pine4/files/patch-ai index b54cd830dc16..f50baad1941c 100644 --- a/chinese/pine4/files/patch-ai +++ b/chinese/pine4/files/patch-ai @@ -1,5 +1,5 @@ ---- pico/browse.c.orig Sat Jul 11 06:41:25 1998 -+++ pico/browse.c Tue Aug 4 12:42:13 1998 +--- pico/browse.c.orig Wed Sep 16 08:19:17 1998 ++++ pico/browse.c Tue Sep 22 17:29:07 1998 @@ -126,12 +126,12 @@ @@ -18,7 +18,7 @@ }; #define QUIT_KEY 1 #define EXEC_KEY 2 -@@ -331,7 +331,7 @@ +@@ -333,7 +333,7 @@ child[0] = '\0'; if((gmode&MDTREE) && !in_oper_tree(dir)){ @@ -27,7 +27,7 @@ sleep(2); return(0); } -@@ -419,7 +419,7 @@ +@@ -421,7 +421,7 @@ else{ if(timeo && (c == NODATA || time_to_check())) if(pico_new_mail()) @@ -36,7 +36,7 @@ } if(km_popped) -@@ -695,7 +695,7 @@ +@@ -697,7 +697,7 @@ gmp->current->fname); /* make sure selected isn't a directory or executable */ if(!LikelyASCII(child)){ @@ -45,7 +45,7 @@ break; } -@@ -725,13 +725,13 @@ +@@ -727,13 +727,13 @@ return(0); } @@ -61,7 +61,7 @@ break; } -@@ -748,11 +748,11 @@ +@@ -750,11 +750,11 @@ {NULL, NULL, 0, KS_NONE}, }; @@ -75,7 +75,7 @@ /* remove break and sleep after help text is installed */ sleep(3); break; -@@ -763,7 +763,7 @@ +@@ -765,7 +765,7 @@ PaintBrowser(gmp, 0, &crow, &ccol); break; case ABORT: @@ -84,7 +84,7 @@ i++; break; case FALSE: -@@ -771,7 +771,7 @@ +@@ -773,7 +773,7 @@ i++; if(tmp[0] == '\0'){ @@ -93,7 +93,7 @@ break; } -@@ -790,12 +790,12 @@ +@@ -792,12 +792,12 @@ case 'D': if(gmp->current->mode == FIODIR){ /* BUG: if dir is empty it should be deleted */ @@ -108,7 +108,7 @@ break; } -@@ -806,17 +806,17 @@ +@@ -808,17 +808,17 @@ while(i++ < 2){ /* verify twice!! */ if(i == 1){ if(fexist(child, "w", (off_t *)NULL) != FIOSUC) @@ -131,7 +131,7 @@ NULL); break; } -@@ -824,7 +824,7 @@ +@@ -826,7 +826,7 @@ if(status == TRUE){ if(unlink(child) < 0){ @@ -140,7 +140,7 @@ } else{ /* fix up pointers and redraw */ tp = gmp->current; -@@ -893,12 +893,12 @@ +@@ -903,12 +903,12 @@ while(!i){ @@ -155,7 +155,7 @@ /* remove break and sleep after help text is installed */ sleep(3); break; -@@ -906,7 +906,7 @@ +@@ -916,7 +916,7 @@ PaintBrowser(gmp, 0, &crow, &ccol); break; case ABORT: @@ -164,7 +164,7 @@ i++; break; case FALSE: -@@ -917,17 +917,17 @@ +@@ -927,17 +927,17 @@ strcpy(child, gethomedir(NULL)); if(!compresspath(gmp->dname, child, NLINE)){ @@ -180,12 +180,12 @@ } if((gmode&MDTREE) && !in_oper_tree(child)){ -- emlwrite("Attempt to Goto directory denied", NULL); -+ emlwrite("已拒絕使用者切換目錄的請求", NULL); +- emlwrite("\007 Can't go outside of %s in restricted mode", ++ emlwrite("\007 限制模式中無法離開 %s", + opertree); break; } - -@@ -943,7 +943,7 @@ +@@ -954,7 +954,7 @@ PaintBrowser(gmp, 0, &crow, &ccol); } else @@ -194,16 +194,7 @@ break; default: -@@ -956,7 +956,7 @@ - case 'a': /* Add */ - case 'A': - if(gmode&MDSCUR){ /* not allowed! */ -- emlwrite("Copy not allowed in restricted mode",NULL); -+ emlwrite("無法在限制模式中新增檔案",NULL); - break; - } - -@@ -965,10 +965,10 @@ +@@ -976,10 +976,10 @@ while(!i){ @@ -212,11 +203,11 @@ QFFILE, NULL)){ case HELPCH: - emlwrite("\007No help yet!", NULL); -+ emlwrite("\007尚無輔助說明!", NULL); ++ emlwrite("\007尚無輔助說明!", NULL); /* remove break and sleep after help text is installed */ sleep(3); break; -@@ -976,7 +976,7 @@ +@@ -987,7 +987,7 @@ PaintBrowser(gmp, 0, &crow, &ccol); break; case ABORT: @@ -225,7 +216,7 @@ i++; break; case FALSE: -@@ -987,7 +987,7 @@ +@@ -998,23 +998,23 @@ i++; if(child[0] == '\0'){ @@ -234,16 +225,26 @@ break; } -@@ -995,7 +995,7 @@ - sprintf(child, "%s%c%s", gmp->dname, C_FILESEP, tmp); + if(!compresspath(gmp->dname, child, NLINE)){ +- emlwrite("Too many ..'s in name", NULL); ++ emlwrite("檔名中有太多的 .. 了", NULL); + break; + } + + if((gmode&MDTREE) && !in_oper_tree(child)){ +- emlwrite("\007Restricted mode allows Add in %s only", ++ emlwrite("\007限制模式中僅允許\在 %s 中新增檔案", + opertree); + break; + } if((status = fexist(child, "w", (off_t *)NULL)) == FIOSUC){ - sprintf(tmp,"File \"%.*s\" already exists!", -+ sprintf(tmp,"檔案 \"%.*s\" 已存在!", ++ sprintf(tmp,"檔案 \"%.*s\" 已存在!", NLINE - 20, child); emlwrite(tmp, NULL); break; -@@ -1011,7 +1011,7 @@ +@@ -1030,7 +1030,7 @@ } else{ /* highlight new file */ ffclose(); @@ -252,7 +253,7 @@ if((p = strrchr(child, C_FILESEP)) == NULL){ emlwrite("Problems refiguring browser", NULL); -@@ -1059,12 +1059,12 @@ +@@ -1078,12 +1078,12 @@ case 'c': /* copy */ case 'C': if(gmp->current->mode == FIODIR){ @@ -267,7 +268,7 @@ break; } -@@ -1073,10 +1073,10 @@ +@@ -1092,10 +1092,10 @@ while(!i){ @@ -280,7 +281,7 @@ /* remove break and sleep after help text is installed */ sleep(3); break; -@@ -1084,7 +1084,7 @@ +@@ -1103,7 +1103,7 @@ PaintBrowser(gmp, 0, &crow, &ccol); break; case ABORT: @@ -289,7 +290,7 @@ i++; break; case FALSE: -@@ -1095,12 +1095,12 @@ +@@ -1114,33 +1114,33 @@ i++; if(child[0] == '\0'){ @@ -304,8 +305,18 @@ break; } -@@ -1108,12 +1108,12 @@ - sprintf(child, "%s%c%s", gmp->dname, C_FILESEP, tmp); + if(!compresspath(gmp->dname, child, NLINE)){ +- emlwrite("Too many ..'s in name", NULL); ++ emlwrite("檔名中有太多的 .. 了", NULL); + break; + } + + if((gmode&MDTREE) && !in_oper_tree(child)){ +- emlwrite("\007Restricted mode allows Copy in %s only", ++ emlwrite("\007限制模式中僅允許\在 %s 中複製檔案", + opertree); + break; + } if((status = fexist(child, "w", (off_t *)NULL)) == FIOSUC){ - sprintf(tmp,"File \"%.*s\" exists! OVERWRITE", @@ -320,7 +331,7 @@ NULL); break; } -@@ -1131,7 +1131,7 @@ +@@ -1158,7 +1158,7 @@ break; } else{ /* highlight new file */ @@ -329,7 +340,7 @@ if((p = strrchr(child, C_FILESEP)) == NULL){ emlwrite("Problems refiguring browser", NULL); -@@ -1174,12 +1174,12 @@ +@@ -1201,12 +1201,12 @@ i = 0; if(!strcmp(gmp->current->fname, "..")){ @@ -344,7 +355,7 @@ break; } -@@ -1187,10 +1187,10 @@ +@@ -1214,10 +1214,10 @@ while(!i){ @@ -357,7 +368,7 @@ /* remove break and sleep after help text is installed */ sleep(3); break; -@@ -1198,7 +1198,7 @@ +@@ -1225,7 +1225,7 @@ PaintBrowser(gmp, 0, &crow, &ccol); break; case ABORT: @@ -366,7 +377,22 @@ i++; break; case FALSE: -@@ -1216,13 +1216,13 @@ +@@ -1238,12 +1238,12 @@ + } + + if(!compresspath(gmp->dname, child, NLINE)){ +- emlwrite("Too many ..'s in name", NULL); ++ emlwrite("檔名中有太多的 .. 了", NULL); + break; + } + + if((gmode&MDTREE) && !in_oper_tree(child)){ +- emlwrite("\007Restricted mode allows Rename in %s only", ++ emlwrite("\007限制模式中僅允許\在 %s 中更改檔名", + opertree); + break; + } +@@ -1251,13 +1251,13 @@ status = fexist(child, "w", (off_t *)NULL); if(status == FIOSUC || status == FIOFNF){ if(status == FIOSUC){ @@ -383,7 +409,7 @@ NULL); break; } -@@ -1232,7 +1232,7 @@ +@@ -1267,7 +1267,7 @@ gmp->current->fname); if(rename(tmp, child) < 0){ @@ -392,7 +418,7 @@ } else{ if((p = strrchr(child, C_FILESEP)) == NULL){ -@@ -1291,7 +1291,7 @@ +@@ -1326,7 +1326,7 @@ if((gmode&MDTREE) && !in_oper_tree(tmp)){ emlwrite( @@ -401,7 +427,7 @@ NULL); break; } -@@ -1312,7 +1312,7 @@ +@@ -1347,7 +1347,7 @@ strcpy(tmp, S_FILESEP); #endif else{ @@ -410,7 +436,7 @@ NULL); break; } -@@ -1339,12 +1339,12 @@ +@@ -1374,12 +1374,12 @@ PlaceCell(gmp, gmp->current, &row, &col); } else @@ -425,7 +451,7 @@ NULL); break; -@@ -1383,7 +1383,7 @@ +@@ -1425,7 +1425,7 @@ switch(readpattern("File name to find")){ case HELPCH: @@ -434,7 +460,7 @@ /* remove break and sleep after help text is installed */ sleep(3); break; -@@ -1414,10 +1414,10 @@ +@@ -1456,10 +1456,10 @@ } while(tp->next); @@ -447,7 +473,7 @@ if(tp){ PlaceCell(gmp, gmp->current, &row, &col); -@@ -1436,7 +1436,7 @@ +@@ -1478,7 +1478,7 @@ i++; /* make sure we jump out */ break; case ABORT: @@ -456,7 +482,7 @@ i++; break; case FALSE: -@@ -1460,7 +1460,7 @@ +@@ -1502,7 +1502,7 @@ mlerase(); } else @@ -465,7 +491,7 @@ i++; break; -@@ -1482,11 +1482,11 @@ +@@ -1524,11 +1524,11 @@ default: /* what? */ Default: if(c < 0xff) @@ -480,7 +506,7 @@ case NODATA: /* no op */ break; } -@@ -1516,7 +1516,7 @@ +@@ -1560,7 +1560,7 @@ errbuf[0] = '\0'; if((mp=(struct bmaster *)malloc(sizeof(struct bmaster))) == NULL){ @@ -489,7 +515,7 @@ return(NULL); } -@@ -1540,7 +1540,7 @@ +@@ -1584,7 +1584,7 @@ mp->cpf = mp->fpl = 0; mp->longest = 5; /* .. must be labeled! */ @@ -498,7 +524,7 @@ if((mp->names = getfnames(mp->dname, NULL, &nentries, errbuf)) == NULL){ free((char *) mp); -@@ -1559,7 +1559,7 @@ +@@ -1603,7 +1603,7 @@ * easily be made a user option later on... */ if((filtnames=(char **)malloc((nentries+1) * sizeof(char *))) == NULL){ @@ -507,7 +533,7 @@ zotmaster(&mp); return(NULL); } -@@ -1610,7 +1610,7 @@ +@@ -1654,7 +1654,7 @@ while(nentries--){ /* stat filtered files */ /* get a new cell */ if((ncp=(struct fcell *)malloc(sizeof(struct fcell))) == NULL){ @@ -516,7 +542,7 @@ zotfcells(mp->head); /* clean up cells */ free((char *) filtnames); free((char *) mp); -@@ -1780,22 +1780,22 @@ +@@ -1840,22 +1840,22 @@ BrowserKeys() { menu_browse[QUIT_KEY].name = (gmode&MDBRONLY) ? "Q" : "E"; @@ -546,7 +572,7 @@ } wkeyhelp(menu_browse); -@@ -1898,7 +1898,7 @@ +@@ -1958,7 +1958,7 @@ if((tp = tp->next) == NULL){ /* above top? */ if(secondtry++){ @@ -555,7 +581,7 @@ return(-1); } else{ -@@ -2064,10 +2064,10 @@ +@@ -2124,10 +2124,10 @@ if(!p) /* no suitable length! */ p = &dir[l-(term.t_ncol-i-19)]; @@ -568,7 +594,7 @@ if(i < j) /* keep it centered */ j = j - i; /* as long as we can */ -@@ -2196,18 +2196,18 @@ +@@ -2256,18 +2256,18 @@ if((line = (buf[i] == '\n') ? 0 : line + 1) >= LA_LINE_LIMIT || !buf[i]){ rv = FALSE; |