[Urwid] [PATCH] fix meta utf8 characters

Ian Ward ian at excess.org
Wed Oct 11 11:46:22 EDT 2006


Nuutti Kotivuori wrote:

> Index: urwid-0.9.7.1/urwid/escape.py
> ===================================================================
> --- urwid-0.9.7.1.orig/urwid/escape.py	2006-10-11 17:23:01.000000000 +0300
> +++ urwid-0.9.7.1/urwid/escape.py	2006-10-11 17:23:19.000000000 +0300
> @@ -259,7 +259,7 @@
>  		
>  		s = "".join([chr(c)for c in [code]+keys[:need_more]])
>  		try:
> -			return s.decode("utf-8"), keys[need_more:]
> +			return [s.decode("utf-8")], keys[need_more:]
>  		except UnicodeDecodeError:
>  			return ["<%d>"%code],keys

Applied.  Thanks!

Ian




More information about the Urwid mailing list