From 493f74d94dd6ebf5f185ce68d17a0110516c7337 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 6 Nov 2015 09:20:16 +0100 Subject: [PATCH] tag/id3: convert path from "wchar_t*" to "char*" for error message --- src/tag/TagId3.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }