|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 0191 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 0191.
Report 0191 Actions
Problem Report Number 0191 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0191 Raised 1994-09-28 08:00 Updated 2003-03-13 08:00 Published 1994-10-06 08:00 Product Standard Internationalised System Calls and Libraries (XPG4) Certification Program The Open Brand certification program Test Suite VSX4 version 4.3.4 Test Identification ANSI.os/charhandle/isprint 1 Problem Summary TSD4.191 According to the X/Open CAE issue 4 version 2 section 5.3 line 1984-1985, it states: print Define characters to be classified as printable characters, including the space character. According to the X... Problem Text
According to the X/Open CAE issue 4 version 2 section 5.3 line 1984-1985,
it states:
print Define characters to be classified as printable characters,
including the space character.
According to the X/Open CAE issue 4:
int isprint(int c);
The isprint() function returns non-zero if c is a printing character.
int iswprint (wint_t wc);
The iswprint() function returns non-zero if wc is a printing wide-character.
The iswctype() function returns non-zero for true.
Since 0x20, the space character is considered as a printable character,
the test should expect non-zero not zero as the return value.Test Output
************************************************************************
/tset/ANSI.os/charhandle/isprint/T.isprint 1 Failed
Test Description:
isprint() returns non-zero if and only if the character is a printing
character in the character classification table associated with the
current locale specified in LC_CTYPE.
Posix Ref: Component ISPRINT Assertion 8.1-04(A)
Test Strategy:
CREATE child process
(child) FOR locales VSX4L1 and VSX4L2 :
FOR categories LC_ALL and LC_CTYPE :
FOR all ASCII values :
VERIFY value returned by isprint() against expected value
Test Information:
isprint(0x20) failed
isprint returns non-zero for printing characters
Current language is VSX4L1
Current category is LC_ALL
Expected return value: 0
Actual return value: 128
isprint(0x20) failed
isprint returns non-zero for printing characters
Current language is VSX4L2
Current category is LC_ALL
Expected return value: 0
Actual return value: 128
isprint(0x20) failed
isprint returns non-zero for printing characters
Current language is VSX4L1
Current category is LC_CTYPE
Expected return value: 0
Actual return value: 128
isprint(0x20) failed
isprint returns non-zero for printing characters
Current language is VSX4L2
Current category is LC_CTYPE
Expected return value: 0
Actual return value: 128
************************************************************************
************************************************************************
/tset/XPG4.os/wcharhandle/iswctype/T.iswctype 2 Failed
Test Description:
When the wide character c is defined to not have property property in
the wide character classification table associated with the current
locale specified in LC_CTYPE, then a call to iswctype() returns zero.
Test Strategy:
OBTAIN multibyte strings using wcharcfg()
CHILD process:
CHANGE to test locale using setlocale()
FOR each valid property name, call wctype()
VERIFY that return value from wctype() when used as the second
argument to iswctype(), with character argument not with that
property returns zero.
Test Information:
With locale set to VSX4L1
iswctype( , wctype(print)) returned 128, expected zero
With locale set to VSX4L2
iswctype( , wctype(print)) returned 128, expected zero
************************************************************************
************************************************************************
/tset/XPG4.os/wcharhandle/iswprint/T.iswprint 2 Failed
Test Description:
When the character is not a printing wide character in the character
classification table associated with the current locale specified in
LC_CTYPE, then a call to iswprint() returns zero.
Test Strategy:
CREATE child process
(child) FOR locales VSX4L1 and VSX4L2 :
FOR categories LC_ALL and LC_CTYPE :
FOR all non-printing ASCII values :
VERIFY value returned by iswprint() is zero
FOR both wide-character locales :
FOR category LC_CTYPE :
FOR non-printing wide-character values :
VERIFY value returned by iswprint() is zero
Test Information:
iswprint(0x20) failed
iswprint returns zero for non-printing wide-characters
Current language is VSX4L1
Current category is LC_ALL
Expected return value: 0
Actual return value: 128
iswprint(0x20) failed
iswprint returns zero for non-printing wide-characters
Current language is VSX4L2
Current category is LC_ALL
Expected return value: 0
Actual return value: 128
iswprint(0x20) failed
iswprint returns zero for non-printing wide-characters
Current language is VSX4L1
Current category is LC_CTYPE
Expected return value: 0
Actual return value: 128
iswprint(0x20) failed
iswprint returns zero for non-printing wide-characters
Current language is VSX4L2
Current category is LC_CTYPE
Expected return value: 0
Actual return value: 128
************************************************************************Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
It is accepted that this is a fault in the test suite and it is recommended
that a waiver be 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 0191
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority