*: use BufferedOutputStream::Fmt()

This commit is contained in:
Max Kellermann
2022-07-13 12:54:58 +02:00
parent 9a30286289
commit b52b0ac85a
11 changed files with 64 additions and 58 deletions
+2 -2
View File
@@ -40,11 +40,11 @@ playlist_print_path(BufferedOutputStream &os, const Path path)
"narrow" charset (i.e. CP_ACP) is incapable of storing all
Unicode paths */
try {
os.Format("%s\n", path.ToUTF8Throw().c_str());
os.Fmt(FMT_STRING("{}\n"), path.ToUTF8Throw());
} catch (...) {
}
#else
os.Format("%s\n", path.c_str());
os.Fmt(FMT_STRING("{}\n"), path.c_str());
#endif
}