Commits

Yuya Nishihara committed 2dd1589

guess: handle non-ascii progress message

Duplicated from UiSignal.progress of thread.py.

Comments (0)

Files changed (1)

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: