libfmt 6.2.0, VS2019 double xx = 1.2; std::wstring tmp = fmt::format(std::locale("en_US"), L"{:L}", xx); will throw "invalid type specifier". (if 'xx' is of type 'int', it works as expected)