1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Yuya Nishihara  committed 9027202

run: fix unicode handling at early ParseError

_() returns localstr in run module, but ExceptionMsgBox expects unicode.

  • Participants
  • Parent commits 9d9e943
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/run.py

View file
  • Ignore whitespace
         errstring = _('Error string "%(arg0)s" at %(arg1)s<br>Please '
                       '<a href="#edit:%(arg1)s">edit</a> your config')
         main = QApplication(sys.argv)
-        dlg = ExceptionMsgBox(hglib.tounicode(str(e)), errstring, opts,
-                              parent=None)
+        dlg = ExceptionMsgBox(hglib.tounicode(str(e)),
+                              hglib.tounicode(errstring), opts, parent=None)
         dlg.exec_()
     except SystemExit:
         pass