Comment 10 for bug 721778

Revision history for this message
Martin Pitt (pitti) wrote :

Thanks for this! I can replicate the crash here, the problem is the mixing of unicode and str here. As set_label() eventually expects an UTF-8 str, I think it's cleaner to explicitly encode the Unicode as UTF-8:

- "repository, for example '%s'.") % ("<i>%s</i>" % example)
+ "repository, for example '%s'.") % ("<i>%s</i>" % example).encode('UTF-8')

I committed this to bzr now.