3 --- util-linux-2.13-pre6/text-utils/col.c.kzak 2002-03-09 00:05:12.000000000 +0100
4 +++ util-linux-2.13-pre6/text-utils/col.c 2006-02-21 22:25:48.000000000 +0100
6 int this_line; /* line l points to */
7 int nflushd_lines; /* number of lines that were flushed */
8 int adjust, opt, warned;
11 setlocale(LC_ALL, "");
12 bindtextdomain(PACKAGE, LOCALEDIR);
14 cur_line = max_line = nflushd_lines = this_line = 0;
15 cur_set = last_set = CS_NORMAL;
16 lines = l = alloc_line();
18 - while ((ch = getwchar()) != WEOF) {
20 + while (feof(stdin)==0) {
22 + if ((ch = getwchar()) == WEOF) {
23 + if (errno==EILSEQ) {
31 case BS: /* can't go back further */
34 if (ferror(stdout) || fclose(stdout))
40 void flush_lines(int nflush)