diff options
author | Max Kellermann <max@duempel.org> | 2015-03-05 09:13:51 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-03-05 10:07:07 +0100 |
commit | 983078992d4189c08ce67bcae3b0658534aa45e2 (patch) | |
tree | 75564d870036645a2be504f90781e87b9af25b2f /src/PlaylistSave.cxx | |
parent | 81059f80d8836294dae9ef85191f01f64949b59c (diff) |
fs/NarrowPath: new utility class
Diffstat (limited to 'src/PlaylistSave.cxx')
-rw-r--r-- | src/PlaylistSave.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/PlaylistSave.cxx b/src/PlaylistSave.cxx index 0653da44c..c4c3a8ecd 100644 --- a/src/PlaylistSave.cxx +++ b/src/PlaylistSave.cxx @@ -29,6 +29,7 @@ #include "fs/AllocatedPath.hxx" #include "fs/Traits.hxx" #include "fs/FileSystem.hxx" +#include "fs/NarrowPath.hxx" #include "util/Alloc.hxx" #include "util/UriUtil.hxx" #include "util/Error.hxx" @@ -45,7 +46,7 @@ playlist_print_song(FILE *file, const DetachedSong &song) const auto uri_fs = AllocatedPath::FromUTF8(uri_utf8); if (!uri_fs.IsNull()) - fprintf(file, "%s\n", uri_fs.c_str()); + fprintf(file, "%s\n", NarrowPath(uri_fs).c_str()); } void @@ -61,7 +62,7 @@ playlist_print_uri(FILE *file, const char *uri) AllocatedPath::FromUTF8(uri); if (!path.IsNull()) - fprintf(file, "%s\n", path.c_str()); + fprintf(file, "%s\n", NarrowPath(path).c_str()); } PlaylistResult |