diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/patchwork/parser.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/patchwork/parser.py b/apps/patchwork/parser.py index 16cc308..2b5e9a0 100644 --- a/apps/patchwork/parser.py +++ b/apps/patchwork/parser.py @@ -222,7 +222,10 @@ def main(args): (options, args) = parser.parse_args() - (patch, comment) = parse_patch(sys.stdin.read()) + # decode from (assumed) UTF-8 + content = sys.stdin.read().decode('utf-8') + + (patch, comment) = parse_patch(content) if options.print_hash and patch: print hash_patch(patch).hexdigest() |