ref: e393b278069fcc2690832c5e6fcbf58c008837dc
parent: 064b082ae09420b8b1de820fd03094f9b36f3146
author: cinap_lenrek <[email protected]>
date: Tue Jun 19 06:16:19 EDT 2012
mothra: fix uencode for utf8
--- a/sys/src/cmd/mothra/forms.c
+++ b/sys/src/cmd/mothra/forms.c
@@ -714,7 +714,7 @@
else if(*s==' ')
fmtprint(f, "+");
else
- fmtprint(f, "%%%.2X", (unsigned int)*s);
+ fmtprint(f, "%%%.2X", *s & 0xFF);
}
return 0;
}