|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 0018 Details
Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 0018.
Report 0018 Actions
Problem Report Number 0018 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0018 Raised 1992-09-04 08:00 Updated 2003-03-13 08:00 Published 1992-09-24 08:00 Product Standard Internationalised System Calls and Libraries (XPG4) Certification Program The Open Brand certification program Test Suite VSX4 version 4.2.3 Test Identification XPG4.os/string/wcstombs 3 Problem Summary TSD4.018 The implementation is in-line with X/Open interpretation request VWG/002/060192. X/OPEN RESOLUTION: If the first argument is null, the functions should return the length required to convert the entire... Problem Text
The implementation is in-line with X/Open interpretation request VWG/002/060192.
X/OPEN RESOLUTION:
If the first argument is null, the functions should return the length
required to convert the entire string regardless of the value of the
third argument, but do not store any values.
This test has been fixed in the VSX4.2.4 beta update.Test Output
************************************************************************
/tset/XPG4.os/string/wcstombs/T.wcstombs 3 Failed
Test Description:
When s is a null pointer, then a call to wcstombs(s,pwcs,n) returns
the number of bytes required to store the converted string, excluding
the terminating null byte.
Test Strategy:
PARENT process will
CREATE child process using cppair()
CHILD process will
SET current locale using setlocale(LC_ALL,VSX4L1)
VERIFY that wcstombs(NULL, pwcs) returns no. of bytes that would be
required to store the converted multi-byte string representation of
pwcs
SET current locale using setlocale(LC_TIME,VSX4L2)
VERIFY that wcstombs(NULL, pwcs) returns no. of bytes that would be
required to store the converted multi-byte string representation of
pwcs
SET current locale using setlocale(LC_TIME,VSXWCLOC1)
VERIFY that wcstombs(NULL, pwcs) returns no. of bytes that would be
required to store the converted multi-byte string representation of
pwcs
SET current locale using setlocale(LC_TIME,VSXWCLOC2)
VERIFY that wcstombs(NULL, pwcs) returns no. of bytes that would be
required to store the converted multi-byte string representation of
pwcs
OBTAIN a string of wide-characters using wcharstr()
SET current locale using setlocale(LC_ALL,locp) where locp is the
locale name set by wcharstr()
CALL wcstombs(NULL, pwcs, partial-length-of-converted-pwcs)
VERIFY that wcstombs() returns no. of bytes occupied by partial
converted multi-byte string
CALL wcstombs(NULL, pwcs, full-length-of-converted-pwcs)
VERIFY that wcstombs() returns no. of bytes occupied by full
converted multi-byte string
Test Information:
wcstombs did not return expected value
Current language is vsxwloc1
Current category is LC_ALL
value of wide-character string : 0x 300010a3 100010a3 300010a4 100010a4
300010a4 100010a4 300010a3 100010a3 300011c1 100011c1 300011c2
100011c2 300010a2 100010a2 300010a3 100010a3 300010a1 100010a1
300010a2 100010a2 300011c2 100011c2 300011c1 100011c1 200010a7
300010a4 100010a5 100010a5
expected return value : 63
actual return value : 71
************************************************************************Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
This is agreed to be a test suite fault in VSX 4.2.3 and a permanent waiver
is recommended.
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 in VSX 4.2.3.
Problem Reporting System Options:
- View Report 0018
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority