Bug 4773 - strptime()'s '%b' descriptor should be greedy
Summary: strptime()'s '%b' descriptor should be greedy
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-10 20:46 UTC by Piotr Engelking
Modified: 2014-07-04 16:13 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.