[pywin32-checkins] pywin32/Pythonwin/pywin/scintilla control.py,1.13,1.14
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2004-10-09 01:33:58
|
Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32361 Modified Files: control.py Log Message: Fix [ 982700 ] unicode default arguments raises an error Index: control.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla/control.py,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** control.py 7 Oct 2004 08:54:01 -0000 1.13 --- control.py 9 Oct 2004 01:33:48 -0000 1.14 *************** *** 200,203 **** --- 200,208 ---- def SCICallTipShow(self, text, pos=-1): if pos==-1: pos = self.GetSel()[0] + if isinstance(text, unicode): + # I'm really not sure what the correct encoding + # to use is - but it has gotta be better than total + # failure due to the array module + text = text.encode("mbcs") buff = array.array('c', text + "\0") addressBuffer = buff.buffer_info()[0] |