shithub: riscv

Download patch

ref: 1f850cbab17f02eeccaf70332254188101ee8327
parent: 1af732323852c6e6a06f7c3e84899d9055289c62
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Sun Jul 14 12:44:16 EDT 2013

uhtml: honor default charset -c when not found in document

--- a/sys/src/cmd/uhtml.c
+++ b/sys/src/cmd/uhtml.c
@@ -131,6 +131,8 @@
 			s = ++e;
 		} while(t);
 	}
+	if(cset)
+		goto Found;
 	s = p;
 	while(s+UTFmax < p+nbuf){
 		s += chartorune(&r, s);
--