-
Notifications
You must be signed in to change notification settings - Fork 533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing explicitly space-padded format specifiers appears broken #1112
Comments
#807 was not merged into the 0.4.x branch directly, but it's possible some of those changes made it into 0.4.25 via a backport. |
Oops, that would be my fault. Should we reverse that? |
Can you submit a PR to revert? Can try to get out a 0.4.26 tonight. |
I can confirm that the revert has fixed this issue for me in 0.4.26. Thank you so much @djc and @pitdicker for the incredibly speedy response! Joe |
FYI I'm still planning to look into this in-depth, as this should have been caught by the tests. I just haven't had the opportunity to sit down for an extended period. I hope to do so soon. |
Add exhaustive set of tests for `DateTime<FixedOffset>::parse_from_str` function and all strftime specifiers. Issue chronotope#1112
Add exhaustive set of tests for `DateTime<FixedOffset>::parse_from_str` function and all strftime specifiers. Issue chronotope#1112
Add exhaustive set of tests for `DateTime<FixedOffset>::parse_from_str` function and all strftime specifiers. Issue chronotope#1112
Hi,
It looks like a recent change to Chrono has broken parsing of the
%e
/%_d
format specifiers ("Same as %d but space-padded"
). Rather than expecting a space padding character, the various strptime-like methods now return aChrono(ParseError(Invalid))
error.The following repro works as I would expect when built against chrono 0.4.24, and fails against chrono 0.4.25.
The changes in #807 look suspiciously related to this issue, though I am not familiar enough with this codebase to know exactly what the issue is.
Many thanks,
Joe
The text was updated successfully, but these errors were encountered: