Xref: utzoo comp.windows.x:34096 sci.lang.japan:3471 soc.culture.china:46440 soc.culture.hongkong:9164 soc.culture.korean:2392 soc.culture.taiwan:10160 Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!news.cs.indiana.edu!ariel.unm.edu!nmsu!opus!mleisher From: mleisher@nmsu.edu (Mark Leisher) Newsgroups: comp.windows.x,sci.lang.japan,soc.culture.china,soc.culture.hongkong,soc.culture.korean,soc.culture.taiwan Subject: kterm 4.1.2 missing patch (button.c) Message-ID: Date: 16 Mar 91 00:04:44 GMT Sender: news@NMSU.Edu Followup-To: comp.windows.x Distribution: comp Organization: Computing Research Lab Lines: 86 export.lcs.mit.edu:contrib/kterm-4.1.2.tar.Z [18.30.0.238] kterm 4.1.2 patchlevel 5 has been placed on the above anonymous ftp site as well as the sites mentioned in my previous posting. I forgot to include the patch for button.c in the patchlevel 4 to patchlevel 5 patches. Here it is: *** 1.4 1991/01/30 00:08:22 --- button.c 1991/03/15 09:28:01 *************** *** 2,8 **** * $XConsortium: button.c,v 1.50 90/03/05 11:46:57 keith Exp $ * $Kagotani: /usr/src.yoshi/X/KTerm/4.1.0/RCS/button.c,v 1.1 90/06/27 09:38:29 kagotani Rel $ * ! * $Header: /usr/local/src/X11/contrib/clients/kterm-4.1.2/RCS/button.c,v 1.4 1991/01/30 00:08:22 mleisher Exp $ */ /* --- 2,8 ---- * $XConsortium: button.c,v 1.50 90/03/05 11:46:57 keith Exp $ * $Kagotani: /usr/src.yoshi/X/KTerm/4.1.0/RCS/button.c,v 1.1 90/06/27 09:38:29 kagotani Rel $ * ! * $Header: /usr/local/src/X11/contrib/clients/kterm-4.1.2/RCS/button.c,v 1.5 1991/03/15 09:27:18 mleisher Exp $ */ /* *************** *** 1572,1577 **** --- 1572,1578 ---- ch = screen->buf[row + screen->topline]; while (ecol >= scol && (ch[ecol].code == ' ' || ch[ecol].code == 0)) + #else /* !KTERM */ register Char *ch; *************** *** 1601,1606 **** --- 1602,1610 ---- #ifdef KTERM register Bchr *ch = screen->buf[row + screen->topline]; register Char g; + # ifdef KTERM_HANZI + register int sp_case = term->flags & BIG5_HANZI; + # endif /* KTERM_HANZI */ #else /* !KTERM */ register Char *ch = screen->buf[2 * (row + screen->topline)]; #endif /* !KTERM */ *************** *** 1616,1622 **** lp->code = ' '; lp->gset = GSET_ASCII; } else { ! lp->code = c; lp->gset = g; } lp++; --- 1620,1640 ---- lp->code = ' '; lp->gset = GSET_ASCII; } else { ! # ifdef KTERM_HANZI ! /* ! * Big5 text is a special case in which the ! * high order bit on the first byte needs to ! * be preserved when cutting/copying by selection. ! * This is because it is a mixed 7 and 8-bit ! * format. ! * If the first byte is not preserved, then the ! * conversion to Compound Text doesn't work ! * right and junk gets stored to the selection. ! */ ! lp->code = (sp_case) ? ch[i].code : c; ! # else /* !KTERM_HANZI */ ! lp->code = c; ! # endif /* !KTERM_HANZI */ lp->gset = g; } lp++; ----------------------------------------------------------------------------- mleisher@nmsu.edu "I laughed. Mark Leisher I cried. Computing Research Lab I fell down. New Mexico State University It changed my life." Las Cruces, NM - Rich [Cowboy Feng's Space Bar and Grille]