freebsd-ports/deskutils/gcalcli/files/patch-gcalcli
Li-Wen Hsu ee6bba867a - Add a patch to fix unicode supporting
PR:		ports/125327
Submitted by:	Yi-Jheng Lin <yzlin AT cs.nctu.edu.tw>
2009-02-16 02:26:49 +00:00

33 lines
919 B
Text

--- gcalcli.orig 2008-07-06 12:29:27.000000000 +0800
+++ gcalcli 2008-07-06 12:31:38.000000000 +0800
@@ -195,25 +195,25 @@
def PrintErrMsg(msg):
if CLR.useColor:
sys.stdout.write(str(CLR_BRRED()))
- sys.stdout.write(msg)
+ sys.stdout.write(unicode(msg, 'UTF-8'))
sys.stdout.write(str(CLR_NRM()))
else:
- sys.stdout.write(msg)
+ sys.stdout.write(unicode(msg, 'UTF-8'))
def PrintMsg(color, msg):
if CLR.useColor:
sys.stdout.write(str(color))
- sys.stdout.write(msg)
+ sys.stdout.write(unicode(msg, 'UTF-8'))
sys.stdout.write(str(CLR_NRM()))
else:
- sys.stdout.write(msg)
+ sys.stdout.write(unicode(msg, 'UTF-8'))
def DebugPrint(msg):
return
sys.stdout.write(str(CLR_YLW()))
- sys.stdout.write(msg)
+ sys.stdout.write(unicode(msg, 'UTF-8'))
sys.stdout.write(str(CLR_NRM()))