]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/cmd/uhtml.c
cc: fix void cast crash
[plan9front.git] / sys / src / cmd / uhtml.c
index 21db3d5b8d11eeb64fdc1d98f935c4d6c9b7e675..bef236f43e2e94c40f945fce461f9b77946026a1 100644 (file)
@@ -122,7 +122,8 @@ main(int argc, char *argv[])
                }
                t = *e;
                *e = 0;
-               if((a = attr(g, "encoding")) != nil || (a = attr(g, "charset")) != nil){
+               if((a = attr(g, "encoding")) != nil || (a = attr(g, "charset")) != nil)
+               if(cistrcmp(a, "utf") != 0 && cistrcmp(a, "utf-8") != 0){
                        cset = a;
                        *e = t;
                        break;