View | Details | Raw Unified | Return to bug 210995 | Differences between
and this patch

Collapse All | Expand All

(-)bin/cat/cat.c (-2 / +2 lines)
Lines 99-105 Link Here
99
	int ch;
99
	int ch;
100
	struct flock stdout_lock;
100
	struct flock stdout_lock;
101
101
102
	setlocale(LC_CTYPE, "");
102
	setlocale(LC_ALL, "");
103
103
104
	while ((ch = getopt(argc, argv, "belnstuv")) != -1)
104
	while ((ch = getopt(argc, argv, "belnstuv")) != -1)
105
		switch (ch) {
105
		switch (ch) {
Lines 239-245 Link Here
239
				continue;
239
				continue;
240
			}
240
			}
241
		} else if (vflag) {
241
		} else if (vflag) {
242
			if (!isascii(ch) && !isprint(ch)) {
242
			if (!isascii(ch)) {
243
				if (putchar('M') == EOF || putchar('-') == EOF)
243
				if (putchar('M') == EOF || putchar('-') == EOF)
244
					break;
244
					break;
245
				ch = toascii(ch);
245
				ch = toascii(ch);

Return to bug 210995