Re: [PATCH v2 1/3] libstdc++: Use formatting locale for std::time_put formats

2025-04-04 Thread Jonathan Wakely
On Fri, 21 Mar 2025 at 09:47, Tomasz Kaminski wrote: > > > > On Thu, Mar 20, 2025 at 5:29 PM Jonathan Wakely wrote: >> >> On Thu, 20 Mar 2025 at 16:16, Jonathan Wakely wrote: >> > >> > When using std::time_put to format a chrono value, we should imbue the >> > formatting locale into the stream.

Re: [PATCH v2 1/3] libstdc++: Use formatting locale for std::time_put formats

2025-03-21 Thread Tomasz Kaminski
On Thu, Mar 20, 2025 at 5:29 PM Jonathan Wakely wrote: > On Thu, 20 Mar 2025 at 16:16, Jonathan Wakely wrote: > > > > When using std::time_put to format a chrono value, we should imbue the > > formatting locale into the stream. This ensures that when > > std::time_put::do_put uses a ctype or __t

Re: [PATCH v2 1/3] libstdc++: Use formatting locale for std::time_put formats

2025-03-20 Thread Jonathan Wakely
On Thu, 20 Mar 2025 at 16:16, Jonathan Wakely wrote: > > When using std::time_put to format a chrono value, we should imbue the > formatting locale into the stream. This ensures that when > std::time_put::do_put uses a ctype or __timepunct facet from the locale, > it gets the correct facets. > > l

[PATCH v2 1/3] libstdc++: Use formatting locale for std::time_put formats

2025-03-20 Thread Jonathan Wakely
When using std::time_put to format a chrono value, we should imbue the formatting locale into the stream. This ensures that when std::time_put::do_put uses a ctype or __timepunct facet from the locale, it gets the correct facets. libstdc++-v3/ChangeLog: * include/bits/chrono_io.h (__forma