Commits

Yuya Nishihara committed 1cdbd7b

grep: convert filename column to unicode (fixes #1774)

Comments (0)

Files changed (1)

tortoisehg/hgqt/grep.py

                         text = hglib.tounicode(text)
                         text = Qt.escape(text)
                         text = '<b>%s</b> <span>%s</span>' % (addremove, text)
+                        fname = hglib.tounicode(fname)
                         user = hglib.tounicode(user)
                         row = [fname, int(rev), int(line), user, text]
                         emitrow(row)
                 if pos:
                     self.hu.write(line[pos:], label='ui.status')
                     path = os.path.join(prefix, wfile)
-                    row = [path, i + 1, ctx.rev(), None,
+                    row = [hglib.tounicode(path), i + 1, ctx.rev(), None,
                            hglib.tounicode(self.hu.getdata()[0])]
                     w = DataWrapper(row)
                     self.matchedRow.emit(w)