|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 0505 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 0505.
Report 0505 Actions
Problem Report Number 0505 Submitter's Classification Test Suite problem State Resolved Resolution Rejected (REJ) Problem Resolution ID REJ.X.0124 Raised 1995-10-30 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.3.5 Test Identification XOPEN.os/locale/nl_langinf 3 Linked Problem Reports req.4.2.488, (in, old, system) Problem Summary PG4R.125 The array nl_items[], defined at line 123 in the file ./tset/XOPEN.os/locale/nl_langinf/nl_langinf.c contains the items "YESSTR" and "NOSTR" (so also the array psnlitems[], however this is not fatal).... Problem Text
The array nl_items[], defined at line 123 in the file
./tset/XOPEN.os/locale/nl_langinf/nl_langinf.c
contains the items "YESSTR" and "NOSTR" (so also the array psnlitems[],
however this is not fatal). In the routine ch_t3(), after performing
a setlocale to NOINFOLANG (VSX4L0), a for-loop walks down the nl_item[]
array, comparing the nl_langinfo() return value with the internal
pslanginfo() return value for the same item in the array psnlitems[].
Unfortunately (see req.4.2.488, the waiver was rejected, but we were advised to
make the necessary change.), in VSX4L0's input file supplied by the authors of
VSX, there is no LC_MESSAGES passage, hence a null return is "correct" and the
test "incorrect".
Suggested fix:
A context diff for $TET_ROOT/SUPPORT/psldefs/lang0.src is appended.
With this change made and the resulting locale installed in the appropriate
location, no failure is reported for this test.
% diff lang0.src lang0.src.new
50,54d49
<
< LC_MESSAGES
< yesstr "<y><e><s>"
< nostr "<n><o>"
< END LC_MESSAGES
Note1: The choice of yesstr/nostr values was made after examination of the
expected values in ./SRC/common/genlib/pslanginfo.c, line 94.
Note2: When the defect in the test which is currently waivered ("%d"
expected, not "%e") is fixed, and the current waiver for this test
withdrawn, this defect in the test suite will be perhaps more evident.
Fixing it now beats fixing it later.Test Output
200|670 3 03:51:27|TP Start
520|670 3 21923 1 1|nl_langinfo(YESSTR) failed
520|670 3 21923 1 2|if no language information is available, by default pointers
to C Locale strings are returned
520|670 3 21923 1 3|Current language binding: VSX4L0
520|670 3 21923 1 4|Expected information string: yes
520|670 3 21923 1 5|Actual information string:
520|670 3 21923 1 6|nl_langinfo(NOSTR) failed
520|670 3 21923 1 7|if no language information is available, by default pointers
to C Locale strings are returned
520|670 3 21923 1 8|Current language binding: VSX4L0
520|670 3 21923 1 9|Expected information string: no
520|670 3 21923 1 10|Actual information string:
220|670 3 1 03:51:27|FAILReview Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
In the case that there is no LC_MESSAGES passage in the locale definition
file, the value supplied for the "yesstr" and "nostr" locale items should
be that specified for the POSIX locale. The XBD definition of the POSIX
locale states on Page 77 that these items should have the values "yes" and
"no" in the POSIX locale. This is an X/Open extension to the POSIX locale,
albeit, one that is marked to be withdrawn. The implementation needs to
supply these values when the LC_MESSAGES passage is not include in the
locale definition and it is recommended that this waiver request is refused.
Review Type SA Review Start Date null Completed null Status Complete Review Resolution Rejected (REJ) Review Conclusion
This waiver request is refused.
Problem Reporting System Options:
- View Report 0505
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority