add ogg, and fix a few old mistakes Reference: /n/atom/patch/applied2013/fileogg Date: Wed Jun 19 03:39:00 CES 2013 Signed-off-by: quanstro@quanstro.net --- /sys/src/cmd/file.c Wed Jun 19 03:38:45 2013 +++ /sys/src/cmd/file.c Wed Jun 19 03:38:45 2013 @@ -99,7 +99,6 @@ } language[] = { - Normal, 0, 0x00a0, 0x00ff, "Latin", Normal, 0, 0x0100, 0x01FF, "Extended Latin", Normal, 0, 0x0370, 0x03FF, "Greek", Normal, 0, 0x0400, 0x04FF, "Cyrillic", @@ -338,7 +337,7 @@ return; } if(mbuf->mode & DMDIR) { - print(mime ? "text/directory\n" : "directory\n"); + print(mime ? OCTET : "directory\n"); return; } if(mbuf->type != 'M' && mbuf->type != '|') { @@ -1275,7 +1274,7 @@ s++; /* skip letter */ d += strtoul(s, &s, 10); } - + switch(d){ case 32: case 24: