Commits

Yuya Nishihara committed 3aa42c0 Draft

filectxactions: eliminate round-trip conversion of unicode in saveFile

Comments (0)

Files changed (1)

tortoisehg/hgqt/filectxactions.py

     def saveFile(self):
         cmdlines = []
         for fd in self._selfds:
-            wfile = hglib.fromunicode(fd.absoluteFilePath())
+            wfile = fd.absoluteFilePath()
             wfile, ext = os.path.splitext(os.path.basename(wfile))
             extfilter = [_("All files (*)")]
             if wfile:
                 filename = "%s@%d" % (ext, fd.rev())
 
             result = QFileDialog.getSaveFileName(
-                self.parent(), _("Save file to"), hglib.tounicode(filename),
+                self.parent(), _("Save file to"), filename,
                 ";;".join(extfilter))
             if not result:
                 continue