summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2013-07-14 16:44:16 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2013-07-14 16:44:16 +0200
commit1f850cbab17f02eeccaf70332254188101ee8327 (patch)
tree3613ad1dfa742752f1db96a79bd3f018b59c3502 /sys
parent1af732323852c6e6a06f7c3e84899d9055289c62 (diff)
uhtml: honor default charset -c when not found in document
Diffstat (limited to 'sys')
-rw-r--r--sys/src/cmd/uhtml.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/cmd/uhtml.c b/sys/src/cmd/uhtml.c
index 08e512354..ca8c154ee 100644
--- a/sys/src/cmd/uhtml.c
+++ b/sys/src/cmd/uhtml.c
@@ -131,6 +131,8 @@ main(int argc, char *argv[])
s = ++e;
} while(t);
}
+ if(cset)
+ goto Found;
s = p;
while(s+UTFmax < p+nbuf){
s += chartorune(&r, s);