summaryrefslogtreecommitdiff
path: root/archivers/py-borgbackup/files/patch-setup_lz4.py
blob: d387ca1101ab46d31fc3545f563811d552d92365 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- setup_lz4.py.orig	2017-12-30 09:14:25 UTC
+++ setup_lz4.py
@@ -24,7 +24,7 @@ def lz4_system_prefix(prefixes):
     for prefix in prefixes:
         filename = os.path.join(prefix, 'include', 'lz4.h')
         if os.path.exists(filename):
-            with open(filename, 'r') as fd:
+            with open(filename, 'r', encoding='utf-8') as fd:
                 if 'LZ4_compress_default' in fd.read():  # requires lz4 >= 1.7.0 (r129)
                     return prefix