HomeAbout Us A-Z IndexSearch * Contact Us Register LoginPress Shop

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 2574 Details

Help Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges

This page provides all information on Problem Report 2574.


Report 2574 Actions


    Problem Report Number 2574
    Submitter's Classification Minor System Fault
    State Resolved
    Resolution Minor System Fault (MSF)
    Problem Resolution ID MSF.X.0111
    Raised 2012-01-18 14:15
    Updated 2012-01-18 09:56
    Published 2012-01-18 09:56
    Expiry Date 2013-01-18
    Product Standard Internationalised System Calls and Libraries Extended (UNIX 95)
    Certification Program The Open Brand certification program
    Test Suite VSX4 version 4.7.4
    Test Identification XPG4.os/time/strptime/T.strptime 3
    Specification System Interfaces and Libraries Issue 4 Version 2
    Location in Spec page 614 strptime( )
    Problem Summary The behaviour of our strptime() function is not the same as the future
    direction.
    Problem Text We met a failure when we executed "strptime("20001", "%Y",&testbuf)"
    in "/tset/XPG4.os/time/strptime/T.strptime 3".

    We are failing the "warning check", because we are returning a NULL
    when called with a 5 digit year, setting no errno, and the tm_year
    field in the structure remains -1.

    Since it's just a warning check for a future direction and portable
    applications cannot rely on %Y scanning more than 4 digits, we don't
    think it is urgent that we fix this at this time. We would like to fix
    this in the next release of our product, probably by having %Y scan a
    maximum of 4 digits and giving a WARNING result when called with a 5
    digit year.

    We want to apply a MSF ("Minor System Fault") for this problem.

    We are waiting for your instructions.
    Test Output 10|0 /tset/XPG4.os/time/strptime/T.strptime 21:00:56|TC Start,
    scenario ref
    1-0, ICs: {3}
    15|0 3.6-lite 1|TCM Start
    400|0 3 1 21:00:56|IC Start
    200|0 3 21:00:56|TP Start
    520|0 3 00033620570 1 1|year including century
    520|0 3 00033620570 1 2|strptime("20001", "%Y", &testbuf) failed.
    520|0 3 00033620570 1 3| return value was NULL
    220|0 3 1 21:00:56|FAIL
    410|0 3 1 21:00:56|IC End
    80|0 0 21:00:57|TC End, scenario ref 1-0
    900|21:00:57|TCC End

    Review Information

    Review Type SA Review
    Start Date 2012-01-18 14:15
    Last Updated 2012-01-18 09:53
    Completed 2012-01-18 09:53
    Status Complete
    Review Resolution Minor System Fault (MSF)
    Review Conclusion The requirements for strptime() %Y have changed in SUSv4 in recognition
    that common existing practice is for %Y to scan a maximum of 4 digits.
    The test allows the SUSv4 behaviour in older test modes (by giving a
    WARNING result instead of FAIL) in order to allow systems to follow this
    future direction.

    Although the submitter's system is behaving differently when the input
    contains 5 digits (hence the FAIL result instead of WARNING), the fact
    that portable applications cannot rely on %Y scanning more than 4 digits
    means that there will be little or no impact on applications, and this
    should be considered a minor system fault.

    A minor system fault is granted.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority