-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<chrono: Rewrite %r spec for C locale (#1865)
put_time(%r) does the wrong thing when we use the C locale, due to some internal machinery. It could get fixed further down level, but that change is a lot more impactful. Instead, we simply rewrite %r when the C locale is used in chrono. This basically has to do with the way that _Strftime, _Gettnames, and expand_time work together. _Gettnames returns a copy of its data and expand_time figures out the locale based on pointer comparison.
- Loading branch information
1 parent
65ad8a7
commit d488200
Showing
2 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters