Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

hgemail: handle character encoding of ui.config

Changeset 52576d86fa09

Parent 90d27139f0c0

by Yuya Nishihara

Changes to one file · Browse files at 52576d86fa09 Showing diff from parent 90d27139f0c0 Diff from another changeset...

 
68
69
70
71
72
73
74
 
 
 
 
 
75
76
77
 
68
69
70
 
 
 
 
71
72
73
74
75
76
77
78
@@ -68,10 +68,11 @@
  except error.Abort:   return ''   - # TODO: ui.config's encoding? - self._qui.to_edit.setText(self._ui.config('email', 'to', '')) - self._qui.cc_edit.setText(self._ui.config('email', 'cc', '')) - self._qui.from_edit.setText(getfromaddr(self._ui)) + self._qui.to_edit.setText( + hglib.tounicode(self._ui.config('email', 'to', ''))) + self._qui.cc_edit.setText( + hglib.tounicode(self._ui.config('email', 'cc', ''))) + self._qui.from_edit.setText(hglib.tounicode(getfromaddr(self._ui)))     self.setdiffformat(self._ui.configbool('diff', 'git') and 'git' or 'hg')