Patchwork D2460: py3: convert bytes to str using encoding.strfromlocal

login
register
mail settings
Submitter phabricator
Date Feb. 27, 2018, 12:56 p.m.
Message ID <51901cbfcd3e91d9e8396f29c5b3dce9@localhost.localdomain>
Download mbox | patch
Permalink /patch/28449/
State Not Applicable
Headers show

Comments

phabricator - Feb. 27, 2018, 12:56 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGd478c8cd89d1: py3: convert bytes to str using encoding.strfromlocal (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2460?vs=6131&id=6164

REVISION DETAIL
  https://phab.mercurial-scm.org/D2460

AFFECTED FILES
  hgext/patchbomb.py

CHANGE DETAILS




To: pulkit, #hg-reviewers, yuja
Cc: mercurial-devel

Patch

diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py
--- a/hgext/patchbomb.py
+++ b/hgext/patchbomb.py
@@ -748,7 +748,7 @@ 
         if not parent.endswith('>'):
             parent += '>'
 
-    sender_addr = eutil.parseaddr(sender)[1]
+    sender_addr = eutil.parseaddr(encoding.strfromlocal(sender))[1]
     sender = mail.addressencode(ui, sender, _charsets, opts.get('test'))
     sendmail = None
     firstpatch = None