[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

T.strptime{3}



>From reading man strptime, it would appear that this testcase has 5 errors.
One of these is due to the ambiguous specification of strptime.
The field descriptor "%I" allows hours to be printed in the range of 0 -
12.
So in the case of the LSB-os test suite, the hour 12 could be printed as
either 0 or 12, and not be wrong in either case.

The remaining errors would then be problems with the test suite.
Two of these are due to the test attempting to use "an alternative
locale-dependent format" for the numerical input, without specifying the
"O" modifier.

"%U"
"%W"

These should probably be "%OE" and "%OW"

"00"

This is not a valid weekday, and should be replaced with "0"

"0091"

A year with the century specified requires the field descriptor "%Y"
Rather than the "%y" that was used in the testcase

Rajit K. Sarkar
sarkarra@us.ibm.com
Phone: (512) 838-9473
Linux Standard Base
IBM Linux Technology Center



Reply to: