|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 2340 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 2340.
Report 2340 Actions
Problem Report Number 2340 Submitter's Classification Test Suite problem State Resolved Resolution Rejected (REJ) Problem Resolution ID REJ.X.0648 Raised 2004-03-04 23:30 Updated 2004-03-15 21:03 Published 2004-03-15 21:03 Product Standard Internationalised System Calls and Libraries Extended V3 (UNIX 03) Certification Program The Open Brand certification program Test Suite VSX4 version 4.5.4 Test Identification XPG4.os/genuts/strfmon test 1 Specification Base Definitions Issue 6 Location in Spec SUSv3 TC1 lines 4782-4875 Problem Summary Incorrect expect value Problem Text From the test output the expected output is [- 1112*4FRF] but from the
VSXL2 locale source
int_n_cs_precedes 0
int_n_sep_by_space 2
int_n_sign_posn 1
according to the SUSv3 TC1 spec when int_n_sep_by_space is set to 2 then
the currency symbol and the sign symbol are to be seperated by a space
if they are adjacent. But in this locale int_n_sign_posn = 1 which
places the sign before the value and the currency symbol, and with
int_n_cs_precedes set to 0, the currency symbol follows the value. So
the expected value is incorrect because the sign and currency symbols
are not adjacent.Test Output
************************************************************************
/tset/XPG4.os/genuts/strfmon/T.strfmon 1 Failed
Test Description:
If strfmon() is supported:
When the format contains a "%" character followed by a i
directive, then strfmon() formats the corresponding double
argument according to the international currency format
associated
with the locale for the LC_MONETARY category. The grouping
character for this locale is inserted and the locale's defaults
for precision and negative value formatting are used.
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)
VERIFY that buf[] contains the expected value
Test Information:
strfmon(buf, 256, "%i", ...) did not return expected results
the %i format converts to international currency format
Current language is VSX4L2
Expected string : [- 1112*4FRF]
Actual string : [-1112*4FRF]
************************************************************************Review Information
Review Type TSMA Review Start Date 2004-03-04 23:30 Last Updated 2004-03-04 23:59 Completed 2004-03-04 23:59 Status Complete Review Recommendation Rejected (REJ) Review Response The specification describes the int_n_sep_by_space value of 2 as follows:
"If the currency symbol and sign string are adjacent, a space separates
them; otherwise, a space separates the sign string from the value."
In the test the currency symbol and sign string are not adjacent,
therefore the "otherwise" clause from the above applies and a space must
separate the sign string from the value. The required space is missing
from the string produced by this strfmon() implementation.
Review Type SA Review Start Date 2004-03-04 23:59 Last Updated 2004-03-09 02:18 Completed 2004-03-09 02:18 Status Complete Review Resolution Rejected (REJ) Review Conclusion TC2 has modified the base specification with respect to the clause
that the submitter cites
TC2 describes the int_n_sep_by_space value of 2 as follows:
"If the currency symbol and sign string are adjacent, a space
separates them;
> otherwise, a space separates the sign string from the value."
In the test the currency symbol and sign string are not adjacent,
therefore the "otherwise" clause from the above applies and a space
must separate the sign string from the value. The required space is
missing from the string produced by this strfmon() implementation.
Problem Reporting System Options:
- View Report 2340
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority