]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
A different approach to the problem reported in
authorTim Peters <tim.peters@gmail.com>
Sat, 28 Apr 2001 05:38:26 +0000 (05:38 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 28 Apr 2001 05:38:26 +0000 (05:38 +0000)
commitb3d8d1f76c64998e7e7789955718c1c24b2f84c6
tree98c2817230e26a4b04c1d3fe83966703fa6c6799
parent3a80c4a29c9eca9699b5bfe80541bc413a83bcef
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/stringobject.c
Objects/unicodeobject.c