tcs: fix UTF-near-EOF bug and add TUNE encoding [rsc] --rw-rw-r-- M 22963 glenda sys 7975 Mar 29 17:57 sys/src/cmd/tcs/utf.c /n/sourcesdump/2006/0329/plan9/sys/src/cmd/tcs/utf.c:37,43 - /n/sourcesdump/2006/0330/plan9/sys/src/cmd/tcs/utf.c:37,43 tot = 0; while((n = read(fd, buf+tot, N-tot)) >= 0){ tot += n; - for(i=j=0; i