diff --git a/include/fmt/std.h b/include/fmt/std.h index f97e97c9..2427e8c8 100644 --- a/include/fmt/std.h +++ b/include/fmt/std.h @@ -245,7 +245,7 @@ struct formatter { auto format(const std::source_location& loc, FormatContext& ctx) const -> decltype(ctx.out()) { auto out = ctx.out(); - out = detail::write_bytes(out, loc.file_name(), format_specs()); + out = detail::write(out, loc.file_name()); out = detail::write(out, ':'); out = detail::write(out, loc.line()); out = detail::write(out, ':');