Compare commits

..

2 Commits

Author SHA1 Message Date
clrbuilder 3d195f17b2 Update packages file for version 34010
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-12-08 00:08:37 -08:00
Patrick McCarty 187098145c patchfilter: encode/decode as UTF-8 when possible
In the event a commit contains invalid UTF-8 characters, replace them
with U+FFFD by using the 'replace' error handler for decode().

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2020-12-04 23:18:16 +00:00
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -1399,6 +1399,7 @@ cve-bin-tool
cxxfilt
cycler
cyrus-sasl
dacite
dapl
darkflow
darktable
+1 -1
View File
@@ -211,7 +211,7 @@ def main():
with open (filename, "r") as myfile:
lines = myfile.readlines()
else:
output = subprocess.check_output("git format-patch -1 --stdout", shell=True).decode("latin-1")
output = subprocess.check_output("git format-patch -1 --stdout", shell=True).decode("utf-8", errors="replace")
lines = output.split("\n")
parse_patch(lines)