diff options
author | Elliott Hughes <enh@google.com> | 2020-09-01 19:02:44 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2020-09-01 19:11:28 -0700 |
commit | d065c0489ed053fab047c88edde3335f7a5e961a (patch) | |
tree | 742aceb1105a46504f739f4a4594e5ecce6321af /libc/malloc_hooks/malloc_hooks.cpp | |
parent | 984b4e9ae1d99c86785c7e98a3fa28a60ca46962 (diff) |
Incorporate upstream's strptime %Z/%z support.
I made toybox use strptime %Z recently (so that it can parse the default
POSIX date(1) output), forgetting that bionic's strptime(3) doesn't
support %Z. Neither does glibc, for that matter; the toybox change works
on glibc effectively by accident --- glibc just ignores the next word
when parsing %Z and assumes that the current time zone ($TZ) is
appropriate. Which it is for the only obvious use case of "round trip
date(1) output".
The related %z is potentially quite a bit more useful in general (parsing
any valid RFC822 time zone), though sadly not useful for the toybox case
that prompted.
Every time I touch this file I promise that I'll actually get us back in
sync with upstream, and every time I fail to get round to it. Maybe
2020 or 2021 will finally be the year...
Also add corresponding tests.
Bug: https://b/167455975
Test: treehugger
Change-Id: I13a7fb7e3ad01ae855750b9314d2eec661fe034f
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions