ls cleanup

This commit is contained in:
Connor Lane Smith
2011-05-27 23:56:43 +01:00
parent 2dfe5c6b8b
commit 0a3a8c55e4
2 changed files with 14 additions and 19 deletions

2
wc.c
View File

@@ -75,7 +75,7 @@ wc(FILE *fp, const char *str)
long nc = 0, nl = 0, nw = 0;
while((c = fgetc(fp)) != EOF) {
if(cmode != 'm' || (c & 0xc0) != 0x80)
if(cmode != 'm' || (c & 0xc0) != 0x80) /* utf8 */
nc++;
if(c == '\n')
nl++;