[Python-Dev] strftime()

Guido van Rossum guido@beopen.com
Sun, 06 Aug 2000 12:34:34 -0500


> [Jack Jansen]
> > The test_strftime regression test has been failing on the Mac for
> > ages, and I finally got round to investigating the problem: the
> > MetroWerks library returns the strings "am" and "pm" for %p but the
> > regression test expects "AM" and "PM". According to the comments in
> > the source of the library (long live vendors who provide it! Yeah!)
> > this is C9X compatibility.
> 
> My copy of a draft C99 std agrees (7.23.3.5) with MetroWerks on this point
> (i.e., that %p in the "C" locale becomes "am" or "pm").
> 
> > I can of course move the %p to the nonstandard expectations, but maybe
> > someone has a better idea?
> 
> Not really.  If Python thinks this function is valuable, it "should" offer a
> platform-independent implementation, but as nobody has time for that ...

No.  The test is too strict.  It should be fixed.

--Guido van Rossum (home page: http://www.pythonlabs.com/~guido/)