| Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv18710
Modified Files:
	control.py 
Log Message:
Use SCI_GETTEXTLENGTH instead of WM_GETTEXTLENGTH as apparently Windows
will "helpfully" change the result of the latter when Asian languages are 
set as the default locale causing scintilla to crash.
Index: control.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla/control.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** control.py	31 Jan 2009 03:51:08 -0000	1.22
--- control.py	1 Feb 2009 03:23:37 -0000	1.23
***************
*** 344,351 ****
  		
  	def GetTextLength(self):
! 		return self.SendScintilla(win32con.WM_GETTEXTLENGTH)
  
  	def GetTextRange(self, start = 0, end = -1, decode = True):
! 		if end == -1: end = self.SendScintilla(win32con.WM_GETTEXTLENGTH)
  		assert end>=start, "Negative index requested (%d/%d)" % (start, end)
  		assert start >= 0 and start <= self.GetTextLength(), "The start postion is invalid"
--- 344,351 ----
  		
  	def GetTextLength(self):
! 		return self.SendScintilla(scintillacon.SCI_GETTEXTLENGTH)
  
  	def GetTextRange(self, start = 0, end = -1, decode = True):
! 		if end == -1: end = self.SendScintilla(scintillacon.SCI_GETTEXTLENGTH)
  		assert end>=start, "Negative index requested (%d/%d)" % (start, end)
  		assert start >= 0 and start <= self.GetTextLength(), "The start postion is invalid"
 |