|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1886 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 1886.
Report 1886 Actions
Problem Report Number 1886 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0947 Raised 1998-09-15 08:00 Updated 2003-03-13 08:00 Published 1998-09-17 08:00 Product Standard Internationalised System Calls and Libraries Extended V2 (UNIX 98) Certification Program The Open Brand certification program Test Suite VSX5 version 5.1.5 Test Identification MSE.os/wchars/btowc 3 Problem Summary TSD5.016 Page 105 of the XPG5 XSH spec satates the prototype for btowc() is the following: wint_t btowc(int c) ; and further states: " The btowc() functions returns WEOF if c has the value EOF or if (unsigned ... Problem Text
Page 105 of the XPG5 XSH spec satates the prototype for btowc() is
the following:
wint_t btowc(int c) ;
and further states:
" The btowc() functions returns WEOF if c has the value EOF or if (unsigned
char) c does not constitute a valid (one-byte) character in the initial
shift state."
The code for the btowc call look like this:
rwchar = btowc((int) w_cfg.mbcurmax1);
mbcurmax1 is defined to be an unsigned char * in SRC/INC/wchar_cfg.h.
Thus a pointer to char is being converted to int instead of the contents
at that address location. The above line should be changed to the following
rwchar = btowc((int) *w_cfg.mbcurmax1);Test Output
************************************************************************
/tset/MSE.os/wchar/btowc/T.btowc 3 Failed
Test Description:
When c does not represent a valid character in the initial shift
state, then a call to btowc(c) returns WEOF.
Test Strategy:
OBTAIN structure of multibyte strings using wcharcfg()
IF the character string mbcurmax1 is not empty string
CHANGE to wide character locale using setlocale()
CALL btowc((int)mbcurmax1)
VERIFY that btowc() returned WEOF
Test Information:
btowc() with invalid character did not return expected WEOF
************************************************************************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:
- View Report 1886
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority