##// END OF EJS Templates
py3: fix patchbomb to accept non-ASCII header value for email preview...
Yuya Nishihara -
r43647:1a0d419e stable
parent child Browse files
Show More
@@ -960,7 +960,10 b' def email(ui, repo, *revs, **opts):'
960 hdr = pycompat.strurl(hdr)
960 hdr = pycompat.strurl(hdr)
961 change = True
961 change = True
962 if isinstance(val, bytes):
962 if isinstance(val, bytes):
963 val = pycompat.strurl(val)
963 # header value should be ASCII since it's encoded by
964 # mail.headencode(), but -n/--test disables it and raw
965 # value of platform encoding is stored.
966 val = encoding.strfromlocal(val)
964 if not change:
967 if not change:
965 # prevent duplicate headers
968 # prevent duplicate headers
966 del m[hdr]
969 del m[hdr]
General Comments 0
You need to be logged in to leave comments. Login now