diff --git a/src/tag/TagId3.cxx b/src/tag/TagId3.cxx index 288f239d1..e46e887bc 100644 --- a/src/tag/TagId3.cxx +++ b/src/tag/TagId3.cxx @@ -31,6 +31,7 @@ #include "Riff.hxx" #include "Aiff.hxx" #include "fs/Path.hxx" +#include "fs/NarrowPath.hxx" #include "fs/FileSystem.hxx" #include @@ -486,7 +487,8 @@ tag_id3_load(Path path_fs, Error &error) { FILE *file = FOpen(path_fs, PATH_LITERAL("rb")); if (file == nullptr) { - error.FormatErrno("Failed to open file %s", path_fs.c_str()); + error.FormatErrno("Failed to open file %s", + NarrowPath(path_fs).c_str()); return nullptr; }