diff options
Diffstat (limited to '')
-rw-r--r-- | src/Mapper.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Mapper.cxx b/src/Mapper.cxx index 1cb967eb6..fa5af2dba 100644 --- a/src/Mapper.cxx +++ b/src/Mapper.cxx @@ -246,7 +246,11 @@ map_fs_to_utf8(const char *path_fs) while (path_fs[0] == G_DIR_SEPARATOR) ++path_fs; - return fs_charset_to_utf8(path_fs); + const std::string path_utf8 = Path::ToUTF8(path_fs); + if (path_utf8.empty()) + return nullptr; + + return g_strdup(path_utf8.c_str()); } const Path & |