]> git.ozlabs.org Git - patchwork/commit
Decode patch from UTF-8 while parsing from stdin
authormartin f. krafft <madduck@madduck.net>
Fri, 5 Feb 2010 03:33:25 +0000 (04:33 +0100)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 13 Dec 2010 00:22:21 +0000 (08:22 +0800)
commit7fd7d0bbe4e3fce405e02e9e630ef70023fdd43e
tree8d898d9dc4b9f926e59a4b1de6ae44d70e2b76ea
parentad4715cef72910b1310d4b93a2294ace878b0b4a
Decode patch from UTF-8 while parsing from stdin

Patchwork (rightfully) hashes patches using UTF-8:

  parser.py:
    def hash_patch(str):
      […]
      hash.update(line.encode('utf-8') + '\n')

This patch makes sure that it treats the incoming data as UTF-8 as well.

Signed-off-by: martin f. krafft <madduck@madduck.net>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/parser.py