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

2025-05-06 Thread Jonathan Wakely
On Tue, 6 May 2025 at 13:35, 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 v2] libstdc++: Fix width computation for the chrono formatting [PR120114]

2025-05-06 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