[Python-checkins] python/dist/src/Objects stringobject.c, 2.209,
2.210 unicodeobject.c, 2.194, 2.195
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Tue Aug 26 22:55:54 EDT 2003
Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1:/tmp/cvs-serv26091/Objects
Modified Files:
stringobject.c unicodeobject.c
Log Message:
SF bug #795506: Wrong handling of string format code for float values.
Adding missing support for '%F'.
Will backport to 2.3.1.
Index: stringobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/stringobject.c,v
retrieving revision 2.209
retrieving revision 2.210
diff -C2 -d -r2.209 -r2.210
*** stringobject.c 18 Jun 2003 14:17:01 -0000 2.209
--- stringobject.c 27 Aug 2003 04:55:51 -0000 2.210
***************
*** 3922,3927 ****
--- 3922,3930 ----
case 'E':
case 'f':
+ case 'F':
case 'g':
case 'G':
+ if (c == 'F')
+ c = 'f';
pbuf = formatbuf;
len = formatfloat(pbuf, sizeof(formatbuf),
Index: unicodeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/unicodeobject.c,v
retrieving revision 2.194
retrieving revision 2.195
diff -C2 -d -r2.194 -r2.195
*** unicodeobject.c 15 Aug 2003 16:52:19 -0000 2.194
--- unicodeobject.c 27 Aug 2003 04:55:51 -0000 2.195
***************
*** 6541,6546 ****
--- 6541,6549 ----
case 'E':
case 'f':
+ case 'F':
case 'g':
case 'G':
+ if (c == 'F')
+ c = 'f';
pbuf = formatbuf;
len = formatfloat(pbuf, sizeof(formatbuf)/sizeof(Py_UNICODE),
More information about the Python-checkins
mailing list