grim/hgwebplus

Parents 64156c16edfa
Children 5958157b2ee1
Use utf8 encoding instead of ascii in diff processing to avoid crashes.
Probably should be configurable.
--- a/src/hgwebplus.py Tue Nov 03 00:19:49 2020 -0600
+++ b/src/hgwebplus.py Fri Dec 03 10:48:46 2021 +0200
@@ -115,7 +115,7 @@
seenb = False
for lineno, l in enumerate(lines, 1):
- match = RE_DIFF.match(l.decode('ascii'))
+ match = RE_DIFF.match(l.decode('utf8'))
if match is not None:
ltype = b'difflineat'
groups = match.groups()