[issue9811] strftime strips '%' from unknown format codes on OS X

2010-09-09 Thread Sverre Johansen
Sverre Johansen added the comment: This is because of differences in GNU and BSD C stdlib; I get the same results using the BSD and GNU versions of `date`. $ date +"%q" What does Python typically do in cases like this? -- ___ Pyth

[issue9811] strftime strips '%' from unknown format codes on OS X

2010-09-09 Thread Sverre Johansen
New submission from Sverre Johansen : There seems to be a platform difference in the way stftime handles unknown format codes. In OSX Python removes the percentage sign from the returned string when the format code is unknown. In Linux it leaves it. Look at the following example: This is