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

Marc-Andre Lemburg report at bugs.python.org
Wed May 18 09:53:22 CEST 2011

Marc-Andre Lemburg <mal at egenix.com> added the comment:

Santoso Wijaya wrote:
> Santoso Wijaya <santoso.wijaya at gmail.com> added the comment:
> `strftime` does not, indeed, seem to define what behaviour it is supposed to do when given non-supported format characters. Under Windows, in fact, it will crash the runtime (see: issue #10762).

According to POSIX, it is defined to be undefined:

       If a conversion specification does not correspond to any of  the  above,  the
       behavior is undefined.

Of course, crashing the runtime is not a good way to interpret this ;-)

nosy: +lemburg

Python tracker <report at bugs.python.org>

More information about the docs mailing list