|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 0091 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 0091.
Report 0091 Actions
Problem Report Number 0091 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0091 Raised 1993-08-30 08:00 Updated 2003-03-13 08:00 Published 1993-09-03 08:00 Product Standard Internationalised System Calls and Libraries (XPG4) Certification Program The Open Brand certification program Test Suite VSX4 version 4.2.4 Test Identification XPG4.os/genuts/strfmon 19 Problem Summary TSD4.091 This test expects a partial conversion when the formatted string size is greater than maxsize. The CAE specification on system interfaces and headers, issue 4 says on page 418: "RETURN VALUE if the to... Problem Text
This test expects a partial conversion when the formatted string
size is greater than maxsize.
The CAE specification on system interfaces and headers, issue 4 says
on page 418:
"RETURN VALUE
if the total number of resulting bytes including the terminating null
byte is not more than maxsize, the strfmon() function returns the number of
bytes placed into the array pointed to by s, not including the terminating
null bytes. Otherwise, -1 is returned, the contents of the array are
indeterminate , and errno is set to indicate the error."
Our strfmon() returns a -1 with errno set to E2BIG in accordance to the
specification. The contents of the array were NULL (indeterminate) and so
by the statement above, do not violate the XPG4 specification.
Hence, a waiver should be granted.Test Output
/tset/XPG4.os/genuts/strfmon/T.strfmon 19 Failed
Test Description:
If strfmon() is supported:
A call to strfmon() places at most maxsize characters (including
the terminating null) into the array referenced by s.
Otherwise:
A call to strfmon() returns -1 and sets errno to ENOSYS.
Test Strategy:
SET locale for LC_MONETARY category
CALL strfmon(buf,maxsize,format,value), where format is set to "%5n",
and maxsize is set less than the size of the formatted string
VERIFY that buf[] contains no more than maxsize characters
Test Information:
strfmon(buf, 3, "%5n", ...) did not return expected results
Current language is VSX4L3
Expected string length: [2]
Actual string length: [0]Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
This seems to be a deficiency in the test suite. Since the interface
has returned -1 and set errno to E2BIG, the contents of buf are
indeterminate and the length of the buffer should not be examined.
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:
- View Report 0091
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority