Bug 15527 - strftime incorrectly combines flags
Summary: strftime incorrectly combines flags
Status: NEW
Alias: None
Product: glibc
Classification: Unclassified
Component: time (show other bugs)
Version: unspecified
: P2 minor
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-24 14:23 UTC by Ondrej Oprala
Modified: 2017-07-02 01:26 UTC (History)
5 users (show)

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


Attachments
Proposed patch (1.17 KB, patch)
2016-05-02 14:53 UTC, Jakub Martisko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ondrej Oprala 2013-05-24 14:23:12 UTC
The strftime function's swap case flag (#) provides unexpected output for some format modifiers (a, A, b...). I'm guessing very few people would benefit from Tuesday being swapped to tUESDAY, but IMHO at least the ^# combination should produce the expected lowercase output.

Thanks.
Comment 1 Frank Ch. Eigler 2013-05-24 21:16:35 UTC
(testing, please ignore.)
Comment 2 Jakub Martisko 2016-05-02 14:53:13 UTC
Created attachment 9230 [details]
Proposed patch