[Python-checkins] CVS: python/dist/src/Modules _tkinter.c,1.122,1.123

Martin v. L?wis loewis@users.sourceforge.net
Sat, 26 Jan 2002 12:21:53 -0800


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv27309

Modified Files:
	_tkinter.c 
Log Message:
Encode Unicode arguments to split/splitlist as UTF-8. Fixes #507962.
2.2.1 bugfix candidate.


Index: _tkinter.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_tkinter.c,v
retrieving revision 1.122
retrieving revision 1.123
diff -C2 -d -r1.122 -r1.123
*** _tkinter.c	2002/01/17 23:15:58	1.122
--- _tkinter.c	2002/01/26 20:21:50	1.123
***************
*** 1192,1196 ****
  	int i;
  
! 	if (!PyArg_ParseTuple(args, "s:splitlist", &list))
  		return NULL;
  
--- 1192,1196 ----
  	int i;
  
! 	if (!PyArg_ParseTuple(args, "et:splitlist", "utf-8", &list))
  		return NULL;
  
***************
*** 1220,1224 ****
  	char *list;
  
! 	if (!PyArg_ParseTuple(args, "s:split", &list))
  		return NULL;
  	return Split(list);
--- 1220,1224 ----
  	char *list;
  
! 	if (!PyArg_ParseTuple(args, "et:split", "utf-8", &list))
  		return NULL;
  	return Split(list);