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

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 0184 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 0184.


Report 0184 Actions


    Problem Report Number 0184
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0184
    Raised 1994-08-10 08:00
    Updated 2003-03-13 08:00
    Published 1994-08-15 08:00
    Product Standard Internationalised System Calls and Libraries (XPG4)
    Certification Program The Open Brand certification program
    Test Suite VSX4 version 4.3.4
    Test Identification XPG4.os/wstring/wcsxfrm 2
    Problem Summary TSD4.184 Depending on the strxfrm maximum expansion factor, strxfrm() can use an unknown amount of space for the transformed value. Either the test set-up should contain a way to specify the "strxfrm() maximum...
    Problem Text

    Depending on the strxfrm maximum expansion factor, strxfrm() can use an
    unknown amount of space for the transformed value.

    Either the test set-up should contain a way to specify the "strxfrm()
    maximum expansion factor" (in our case it would be 8-to-1) or the program
    should keep trying bigger and bigger buffer sizes until the result fits
    entirely in the buffer.

    The test may use 25 as n, but it should expect the first 25 bytes are there,
    instead of the entire result. It should keep enlarging the buffer until the
    returned count is smaller than the buffer size.

    Test Output


    /tset/XPG4.os/wstring/wcsxfrm/T.wcsxfrm 2 Failed

    Test Description:
    If wcsxfrm() is supported:
    A call to wcsxfrm() transforms the wide string pointed to by s2
    into the wide character array pointed to by s1 taking account of
    the language dependent collating information defined for the
    current locale value for the LC_COLLATE category.
    The resulting wide string s1 is such that the wide string will be
    correctly ordered against another transformed wide string for the
    specified language collating sequence using the function wcscmp().
    The result of this wcscmp() corresponds to the result of a
    wcscoll() on the original strings.
    Otherwise:
    A call to wcsxfrm() returns (size_t)-1 and sets errno to ENOSYS.

    Test Strategy:
    FOR locale SET to VSX4L1 and VSX4L2
    VERIFY collation of accented characters in correct order
    VERIFY that strings with different primary order collate in primary
    order sequence even though secondary ordering differs
    VERIFY collation of accented characters against non-accented
    characters
    VERIFY collation of dictionary orderings (upper/lower case)
    VERIFY that don't care characters are ignored.
    SET locale to other language
    VERIFY collating sequence is for current language

    Test Information:

    1-2 character mappings are undertaken
    Current language setting is VSX4L1
    wcsxfrm did not behave as expected
    first string to transform : 4841545445 (hasse)
    second string to transform : 48415f45 (ha&e)
    wcscmp() on transformed strings: expected 0, actual 77
    accented comparisons are undertaken
    Current language setting is VSX4L1
    wcsxfrm did not behave as expected
    first string to transform : 559c434845 (ta"che)
    second string to transform : 55413c434845 (ta^che)
    wcscmp() on transformed strings: expected < 0, actual 84
    accented comparison against non-accented word
    Current language setting is VSX4L1
    wcsxfrm did not behave as expected
    first string to transform : 55453b4e5445 (te`nse)
    second string to transform : 55454e5445 (tense)
    wcscmp() on transformed strings: expected > 0, actual -18
    accented comparison against non-accented word
    Current language setting is VSX4L1
    wcsxfrm did not behave as expected

    first string to transform : 4153433d4544 (arc~ed)
    second string to transform : 4153434544 (arced)
    wcscmp() on transformed strings: expected > 0, actual -16
    dont care characters are ignored
    Current language setting is VSX4L1
    wcsxfrm did not behave as expected
    first string to transform : 4241534e (barn)
    second string to transform : 423f41534e (b-arn)
    wcscmp() on transformed strings: expected 0, actual 60
    primary order overrides accented comparison
    Current language setting is VSX4L2
    wcsxfrm did not behave as expected
    first string to transform : 4693853c84 (Fre^d)
    second string to transform : 4693853a84848985 (Fre'ddie)
    wcscmp() on transformed strings: expected < 0, actual 22
    accented comparison against non-accented word
    Current language setting is VSX4L2
    wcsxfrm did not behave as expected
    first string to transform : 87853c9594 (ge^ts)
    second string to transform : 87859594 (gets)
    wcscmp() on transformed strings: expected > 0, actual -21
    dont care characters are ignored
    Current language setting is VSX4L2
    wcsxfrm did not behave as expected
    first string to transform : 823f81938e (b-arn)
    second string to transform : 8281938e (barn)
    wcscmp() on transformed strings: expected 0, actual -23

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    This is accepted as a fault in the test suite and it is recommended that
    a waiver is granted on the grounds of a test suite deficiency.

    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution Test Suite Deficiency (TSD)
    Review Conclusion
    This is an agreed Test Suite Deficiency.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority