Commits

Yuya Nishihara  committed d772a6f

qtlib: fix handling of non-ascii font name at initfontcache

  • Participants
  • Parent commits db969fd
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/qtlib.py

 def initfontcache(ui):
     for name in _fontdefaults:
         fname = ui.config('tortoisehg', name, _fontdefaults[name])
-        _fontcache[name] = ThgFont(fname)
+        _fontcache[name] = ThgFont(hglib.tounicode(fname))
 
 def getfont(name):
     assert name in _fontdefaults