Bug 4773

Summary: strptime()'s '%b' descriptor should be greedy
Product: glibc Reporter: Piotr Engelking <inkerman42>
Component: libcAssignee: Ulrich Drepper <drepper.fsp>
Status: RESOLVED FIXED    
Severity: normal CC: glibc-bugs, tomek
Priority: P2 Flags: fweimer: security-
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description Piotr Engelking 2007-07-10 20:46:30 UTC
strptime()'s '%b'/'%B'/'%h' field descriptor should use greedy matching.
Currently, it uses first fit, which causes strptime() to misparse months in, at
least, Polish and Vietnamese locale, e.g.:

* 'VIII' (August) is incorrectly matched as 'V' (May).
* 'Tháng mười một' (November) is incorrectly matched as 'Tháng mười' (October).
Comment 1 Ulrich Drepper 2007-07-10 22:14:17 UTC
Fixed in cvs.