Commits

Yuya Nishihara committed b6f72d5

commit: make sure to drop untranslatable character (fixes #2475)

ee22eaafe5fe introduced round-trip localstr, which disabled the expected
behavior.

  • Participants
  • Parent commits c4d4b16
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/commit.py

                      (_('&Replace'), _('Cancel')), 0, 1, []).run()
             if res == 0:
                 msg = self.getMessage(True)
+                msg = str(msg)  # drop round-trip utf8 data
                 self.msgte.setText(hglib.tounicode(msg))
             self.msgte.setFocus()
             return