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')
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) .encode( 'UTF-8' )
+ "repository, for example '%s'.") % ("<i>%s</i>" % example)
I committed this to bzr now.