Commits

Yuya Nishihara  committed 2dd1589

guess: handle non-ascii progress message

Duplicated from UiSignal.progress of thread.py.

  • Participants
  • Parent commits 61044c3
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/guess.py

 
     def run(self):
         def emit(topic, pos, item='', unit='', total=None):
+            topic = hglib.tounicode(topic or '')
+            item = hglib.tounicode(item or '')
+            unit = hglib.tounicode(unit or '')
             self.progress.emit(topic, pos, item, unit, total)
         self.repo.ui.progress = emit
         try: