ref: 7a79e2876156cf96e3185c2748f3419d3ac75dbd
parent: b009c447c428e1e5fbdc457356c56f2ed01a41df
author: Ori Bernstein <ori@eigenstate.org>
date: Wed Aug 30 23:29:44 EDT 2023
diff: improve is-binary heuristic check for runeerror, remove broken partial control code checks.
--- a/sys/src/cmd/diff/diffio.c
+++ b/sys/src/cmd/diff/diffio.c
@@ -130,7 +130,7 @@
* brave new UNICODE world
*/
cp += chartorune(&r, cp);
- if (r == 0 || (r > 0x7f && r <= 0xa0)) {
+ if(r == 0 || r == Runeerror){
d->binary++;
return bp;
}