about summary refs log tree commit diff stats
path: root/contrib/hldiff.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/hldiff.py')
-rwxr-xr-xcontrib/hldiff.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/hldiff.py b/contrib/hldiff.py
index 9c81663..5f660fd 100755
--- a/contrib/hldiff.py
+++ b/contrib/hldiff.py
@@ -7,6 +7,7 @@ ansi_escape = re.compile(r'\x1B\[[0-?]*[ -/]*[@-~]')
 stat_re = re.compile(r'(| \d+ )(\+*)(\-*)')
 lines_re = re.compile(r'@@ (-\d+,\d+ \+\d+,\d+) @@')
 
+sys.stdin.reconfigure(encoding='utf-8', errors='ignore')
 patch = sys.stdin.read().replace("\r\n", "\n")
 patch = ansi_escape.sub('', patch)