Closed GoogleCodeExporter closed 8 years ago
Do you have recent versions of sip, PyQt4 and PyKDE4 installed? Which versions?
And
which Python version (Frescobaldi has not yet been tested with Python3)?
On my 2 systems this works:
% python
>>> from PyQt4.QtCore import *
>>> QString("bla") + u"bla"
PyQt4.QtCore.QString(u'blabla')
Original comment by wbsoft
on 21 Aug 2009 at 7:34
python-module-sip-4.8.1 python-module-PyQt4-4.5.2 python-module-kde4-4.3.0
python-2.5.4
I've fixed 'QString' + 'unicode' bug with:
-self.setCaption(name + " [%s]" % i18n("modified"))
+self.setCaption(unicode(name) + " [%s]" % i18n("modified"))
Original comment by artem.zo...@gmail.com
on 21 Aug 2009 at 8:45
All versions seem recent enough. Although I do not fully understand why in some
cases
the QString does not want to cooperate with unicode, your fix is robust and
should
avoid this error in the future.
If you have some time, could you please test the following solution on your
system,
which seems even more elegant to me?
self.setCaption("%s [%s]" % (name, i18n("modified")))
Thanks,
Original comment by wbsoft
on 22 Aug 2009 at 11:39
Fixed in SVN r1428, please test :)
Original comment by wbsoft
on 24 Aug 2009 at 11:37
Original issue reported on code.google.com by
artem.zo...@gmail.com
on 18 Aug 2009 at 5:54