Re: [PATCH] libstdc++: Fix width computation for the chrono formatting [PR120114]

2025-05-06 Thread Jonathan Wakely
On Tue, 6 May 2025 at 13:06, Tomasz Kaminski wrote: > > > > On Tue, May 6, 2025 at 1:59 PM Jonathan Wakely wrote: >> >> On 05/05/25 16:45 +0200, Tomasz Kamiński wrote: >> >Use `__unicode::_field_width` to compute the field width of the output when >> >writting >> >the formatted output for std::c

Re: [PATCH] libstdc++: Fix width computation for the chrono formatting [PR120114]

2025-05-06 Thread Tomasz Kaminski
On Tue, May 6, 2025 at 1:59 PM Jonathan Wakely wrote: > On 05/05/25 16:45 +0200, Tomasz Kamiński wrote: > >Use `__unicode::_field_width` to compute the field width of the output > when writting > >the formatted output for std::chrono::types. This applies both to > characters copied > >from format

Re: [PATCH] libstdc++: Fix width computation for the chrono formatting [PR120114]

2025-05-06 Thread Jonathan Wakely
On 05/05/25 16:45 +0200, Tomasz Kamiński wrote: Use `__unicode::_field_width` to compute the field width of the output when writting the formatted output for std::chrono::types. This applies both to characters copied from format string, and one produced by localized formatting. We also use _St

Re: [PATCH] libstdc++: Fix width computation for the chrono formatting [PR120114]

2025-05-05 Thread Tomasz Kaminski
On Mon, May 5, 2025 at 4:48 PM Tomasz Kamiński wrote: > Use `__unicode::_field_width` to compute the field width of the output > when writting > the formatted output for std::chrono::types. This applies both to > characters copied > from format string, and one produced by localized formatting. >

[PATCH] libstdc++: Fix width computation for the chrono formatting [PR120114]

2025-05-05 Thread Tomasz Kamiński
Use `__unicode::_field_width` to compute the field width of the output when writting the formatted output for std::chrono::types. This applies both to characters copied from format string, and one produced by localized formatting. We also use _Str_sink::view() instead of get(), which avoids copy