This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Failure in strftime with %X format on ia64 platform


Hi,

I ran a test case for strftime in posixtestsuite project based on kernel 2.6.1 
with libc-2004-02-01 on IA64 platform. The case failed when given a format spec of `%X`.

Platform:
--------------------
libc: 2004-02-01
Linux kernel: 2.6.1-mm2 SMP on ia64
gcc-3.3.3-20040209
Redhat EL-3.0-update1

Test Case and Output
----------------------
The case can be found at http://cvs.sourceforge.net/viewcvs.py/posixtest/posixtestsuite/conformance/interfaces/strftime/1-1.c

Output: 
conformance/interfaces/strftime/1-1: execution: FAILED: Output: 
STRING IS:   Fri 27 Feb 2004 10:42:16 PM CST

a   Bytes 3           Fri       PASS
A   Bytes 6           Friday    PASS
b   Bytes 3           Feb       PASS
B   Bytes 8           February  PASS
C   Bytes 2           20        PASS
d   Bytes 2           27        PASS
e   Bytes 2           27        PASS
F   Bytes 10           2004-02-27       PASS
H   Bytes 2           22        PASS
G   Bytes 4           2004      PASS
h   Bytes 3           Feb       PASS
I   Bytes 2           10        PASS
j   Bytes 3           058       PASS
m   Bytes 2           02        PASS
M   Bytes 2           42        PASS
n   Bytes 1
        PASS
p   Bytes 2           PM        PASS
r   Bytes 11           10:42:16 PM      PASS
R   Bytes 5           22:42     PASS
S   Bytes 2           16        PASS
t   Bytes 1                     PASS
T   Bytes 8           22:42:16  PASS
u   Bytes 1           5 PASS
U   Bytes 2           08        PASS
V   Bytes 2           09        PASS
w   Bytes 1           5 PASS
W   Bytes 2           08        PASS
X   Bytes 11           10:42:16 PM      Test Failed: %X doesn't equal at least 8
 bytes 

The locale value for %X is "%H:%M:%S", not including %p. 
I have also tested in ia34 platform, it works well. 

Thanks,
Crystal



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]