Path: convert fs_charset_to_utf8() to static method Path::ToUTF8()
This commit is contained in:
@@ -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 &
|
||||
|
Reference in New Issue
Block a user