|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 0421 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 0421.
Report 0421 Actions
Problem Report Number 0421 Submitter's Classification Test Suite problem State Resolved Resolution Rejected (REJ) Problem Resolution ID REJ.X.0040 Raised 1993-11-15 08:00 Updated 2003-03-13 08:00 Published null 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 15 Problem Summary PG4R.040 XSH4 page 416 states: The format is a character string that contains two types of objects: plain characters, which are simply copied to the output stream, and conversion specifications, each of which ... Problem Text
XSH4 page 416 states:
The format is a character string that contains two types of
objects: plain characters, which are simply copied to the
output stream, and conversion specifications, each of which
results in the fetching of zero or more arguments which are
converted and formatted ...
A conversion specification consists of the following
sequence:
- a % character
- optional flags
- optional field width
- optional left precision
- optional right precision
- a required conversion character that determines the
conversion to be performed.
The character string that VSX intends to serve as a conversion specification
does not follow the sequence specified by XPG4, because the optional field
width "20" is specified before the optional flag "=0". Therefore, the
character string is not considered as a conversion specification but instead
as "plain characters", and "simply copied to the output stream." If the
character string is changed from "%20=0#5n" to "%=020#5n", the character
string changes from plain characters to a conversion specification, and the
test passes.
Our implementation evaluates a conversion specification in the sequence
specified by XPG4. Since the VSX code does not follow this sequence, the
VSX code is not portable. For this reason, a permanent waiver is requested.Test Output
/tset/XPG4.os/genuts/strfmon/T.strfmon 15 Failed
Test Description:
If strfmon() is supported:
When both a width specification and a left precision specification
with a numeric fill character are specified, then strfmon() first
formats the result according to the left precision specification
and then places this formatted value into a field of the specified
size and alignment according to the width specification.
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
"%20=0#5n"
VERIFY that buf[] contains the expected value
Test Information:
strfmon(buf, 256, "%20=0#5n", ...) did not return expected results
%d=0#dn specification align columns left of radix char
Current language is VSX4L3
Expected string : [ Dm01 234^560]
Actual string : [%20=0#5n]Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
This requested interpretation is covered by TSD4.088.
Review Type SA Review Start Date null Completed null Status Complete Review Resolution Rejected (REJ) Review Conclusion
This request is refused, please refer to TSD4.088.
Problem Reporting System Options:
- View Report 0421
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority