- Add a patch to fix unicode supporting
PR: ports/125327 Submitted by: Yi-Jheng Lin <yzlin AT cs.nctu.edu.tw>
This commit is contained in:
parent
2868c4ab79
commit
ee6bba867a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=228481
@ -8,7 +8,7 @@
|
||||
|
||||
PORTNAME= gcalcli
|
||||
PORTVERSION= 1.4
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= deskutils
|
||||
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
33
deskutils/gcalcli/files/patch-gcalcli
Normal file
33
deskutils/gcalcli/files/patch-gcalcli
Normal file
@ -0,0 +1,33 @@
|
||||
--- 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()))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user