[TxMt] dialog.py UTF-8 problem

Hans-Jörg Bibiko bibiko at eva.mpg.de
Thu May 29 18:18:22 UTC 2008

Dear dialog.py developer,

I'm not a python programmer but I'm just learning ;)

I believe that dialog.py's method "menu" fails if I call it with a  
list of strings which is encode in UTF-8 (i.e. the string contains  
non-ASCII characters)

What I did:

suggestions = list(list(unicode(grepout.read(), "UTF-8"))[2:])

suggestions contains a list of Unicode characters. Fine.
suggestions[3] etc. can I insert in TM's document perfectly.


result = dialog.menu(suggestions)


Did I something wrong or is this an issue of dialog.py?

Many thanks in advance,


More information about the textmate mailing list