arm: strptime("x2084y", "x%C%yy", &tm) returns NULL

wangyufen wangyufen at huawei.com
Tue Sep 23 01:56:13 UTC 2014


On 2014/9/20 18:12, wangyufen wrote:
> Hi,
> 
> I tested the strptime() functionon arm board:
> 
> with uclibc: 
>      strptime("x2084y", "x%C%yy", &tm) returns NULL
>      strptime("61", "%S", &tm)  also returns NULL
> 
> but,on x86 with glibc:
>       strptime("x2084y", "x%C%yy", &tm) returns correct ptr
>       strptime("61", "%S", &tm) returns correct ptr
> 
> Is this a bug? 
> 
> 
> 
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://lists.busybox.net/mailman/listinfo/uclibc
> 
> 

Hi,

I checked the strptime implementation of uclibc and glibc, 
There are two differences:
    1) The limit of %S(Second) is 60 in uclibc, and glibc is 61  
    2) In uclibc, %C%y the continuous format expects overflow

Dose anyone konw why?


Thanks,
Wang



More information about the uClibc mailing list