A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-checkins/2001-November/022969.html below:

[Python-checkins] CVS: python/dist/src/Objects unicodeobject.c,2.120,2.121

[Python-checkins] CVS: python/dist/src/Objects unicodeobject.c,2.120,2.121M.-A. Lemburg lemburg@users.sourceforge.net
Tue, 20 Nov 2001 07:18:51 -0800
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv16750/Objects

Modified Files:
	unicodeobject.c 
Log Message:
Fix for bug #438164: %-formatting using Unicode objects.

This patch also does away with an incompatibility between Jython
and CPython.



Index: unicodeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/unicodeobject.c,v
retrieving revision 2.120
retrieving revision 2.121
diff -C2 -d -r2.120 -r2.121
*** unicodeobject.c	2001/10/19 12:02:29	2.120
--- unicodeobject.c	2001/11/20 15:18:49	2.121
***************
*** 5301,5304 ****
--- 5301,5305 ----
  		    goto onError;
  		}
+ #if 0
  		/* keys are converted to strings using UTF-8 and
  		   then looked up since Python uses strings to hold
***************
*** 5308,5311 ****
--- 5309,5315 ----
  					   keylen,
  					   NULL);
+ #else
+ 		key = PyUnicode_FromUnicode(keystart, keylen);
+ #endif
  		if (key == NULL)
  		    goto onError;




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4