Path: convert fs_charset_to_utf8() to static method Path::ToUTF8()

This commit is contained in:
Denis Krjuchkov
2013-01-24 02:26:38 +06:00
parent 3bd35d1883
commit 3c7cf94643
7 changed files with 60 additions and 54 deletions

View File

@@ -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 &