mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-28 05:09:44 +01:00
Fix handling of default alignmment with locale (#1801)
This commit is contained in:
@@ -1598,8 +1598,11 @@ template <typename OutputIt, typename Char, typename UInt> struct int_writer {
|
||||
make_checked(p, s.size()));
|
||||
}
|
||||
if (prefix_size != 0) p[-1] = static_cast<Char>('-');
|
||||
out = write(out, basic_string_view<Char>(buffer.data(), buffer.size()),
|
||||
specs);
|
||||
using iterator = remove_reference_t<decltype(reserve(out, 0))>;
|
||||
auto data = buffer.data();
|
||||
out = write_padded<align::right>(out, specs, size, size, [=](iterator it) {
|
||||
return copy_str<Char>(data, data + size, it);
|
||||
});
|
||||
}
|
||||
|
||||
void on_chr() { *out++ = static_cast<Char>(abs_value); }
|
||||
|
||||
Reference in New Issue
Block a user