|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1926 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 1926.
Report 1926 Actions
Problem Report Number 1926 Submitter's Classification Test Suite problem State Resolved Resolution Rejected (REJ) Problem Resolution ID REJ.X.0562 Raised 2000-01-21 08:00 Updated 2003-03-13 08:00 Published null Product Standard Internationalised System Calls and Libraries Extended V2 (UNIX 98) Certification Program The Open Brand certification program Test Suite VSX4 version 4.4.4 Test Identification XPG4.os/time/strptime 3 Problem Summary PG5R.005 XPG4.os/time/strptime/T.strptime 3 Failed According to the corrigenda " On the strptime() manual page (Page 889, Volume 2), change: %r is the time as %I:%M:%S %p. to: %r 12-hour clock time using the A... Problem Text
XPG4.os/time/strptime/T.strptime 3 Failed
According to the corrigenda
" On the strptime() manual page (Page 889, Volume 2), change:
%r is the time as %I:%M:%S %p.
to:
%r 12-hour clock time using the AM/PM notation if t_fmt_ampm is
not an empty string in the LC_TIME portion of the current locale;
in the POSIX locale, this will be equivalent to ``%I:%M:%S %p''."
In our locale in the LC_TIME portion, t_fmt_ampm is defined as
t_fmt_ampm "%I:%M:%S %p"
But in this test case the parameter passed to strptime is
"11.49.45 VM", which is not in the the "%I:%M:%S %p" format.
The strptime function returns correct values if we pass
time in "%I:%M:%S %p" format and the test passes.
Test Output
/tset/XPG4.os/time/strptime/T.strptime 3 Failed
Test Description:
If strptime() is supported:
When format is a string made up of a series of the following field
descriptors :
a. d day of month - 01 to 31 (with or without leading zeros)
b. D date in %m/%d/%y format
c. H hour - 00 to 23 (with or without leading zeros)
d. I hour - 00 to 12 (with or without leading zeros)
e. j day of year - 001 to 366
f. M minute - 00 to 59 (with or without leading zeros)
g. m month of year - 01 to 12 (with or without leading zeros)
h. n any whitespace character sequence
i. r time in %I:%M:%S %p format
j. S second - 00 to 61 (with or without leading zeros)
k. t any whitespace character sequence
l. T time in %H:%M:%S notation
m. U week number of year - 00 to 53 (Sunday as first day of week)
(with or without leading zeros)
n. w day of week - 0 to 6 (Sunday = 0) (with or without leading
zeros)
o. W week number of year - 00 to 53 (Monday as first day of week)
(with or without leading zeros)
p. y last two digits of year - 00 to 99 (with or without leading
zeros)
q. Y four digit year including century
then a call to strptime() reads characters from string and, in the
case that these characters match the format of the directive,
translates these characters into the appropriate member of the tm
structure. Occurrences of "%%" in the format string are matched
against a single "%" and do not affect the tm structure.
Otherwise:
A call to strptime() returns NULL and sets errno to ENOSYS.
Test Strategy:
PARENT process will
CREATE child process using cppair()
CHILD process will
FOR each item in the assertion, and for fields with and without
leading zeroes where allowed, and for locales VSX4L1 and VSX4L2
where indicated:
INITIALISE the tm structure to be set by strptime()
INITIALISE the tm structure that strptime() will be checked
against.
IF testing the %p format:
SET the locale for LC_TIME to VSX4L1 or VSX4L2
OBTAIN the relevant pseudo-language data using pslanginfo()
CONVERT the date and time string to a tm structure using
strptime()
VERIFY strptime() returns the expected tm structure.
Test Information:
appropriate time as specified in T_FMT_AMPM string
strptime("11.49.45 VM", "%r", &testbuf) failed.
Current language is VSX4L1
return value was NULLReview Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
It appears that the VSX4L1 locale has not been correctly installed
before executing this test. The AM/PM format for VSX4L1 should be
defined as:
t_fmt_ampm "%I.%M.%S %p"
as it is in the example localedef source supplied with VSXgen.
(Line 228 of SUPPORT/psldefs/lang1.src)
It is recommended that this request is refused.
Review Type SA Review Start Date null Completed null Status Complete Review Resolution Rejected (REJ) Review Conclusion
This request is refused.
Problem Reporting System Options:
- View Report 1926
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority