You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/python-termstyle/files/tests-unicode.patch

11 lines
212 B

diff --git a/test2.py b/test2.py
index 2d84c37..1331545 100755
--- a/test2.py
+++ b/test2.py
@@ -2,4 +2,4 @@
from termstyle import *
-print green(u"unicod\xe9!")
+print green(u"unicod\xe9!".encode('utf-8'))