]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport of Tim's checkin 2.88:
authorThomas Wouters <thomas@python.org>
Wed, 23 May 2001 12:31:25 +0000 (12:31 +0000)
committerThomas Wouters <thomas@python.org>
Wed, 23 May 2001 12:31:25 +0000 (12:31 +0000)
commit930874efdd5bbe3b90518e52f59acc0bd5e41180
treedd97b3483e809f25dc49a72cb159fdd9a41c36c0
parent4a11bb3f86a5d5ca975f800cf1740b9253794ab7
Backport of Tim's checkin 2.88:

A different approach to the problem reported in
Patch #419651: Metrowerks on Mac adds 0x itself
C std says %#x and %#X conversion of 0 do not add the 0x/0X base marker.
Metrowerks apparently does.  Mark Favas reported the same bug under a
Compaq compiler on Tru64 Unix, but no other libc broken in this respect
is known (known to be OK under MSVC and gcc).
So just try the damn thing at runtime and see what the platform does.
Note that we've always had bugs here, but never knew it before because
a relevant test case didn't exist before 2.1.
Objects/unicodeobject.c