Path: ToUTF() returns std::string

This commit is contained in:
Denis Krjuchkov
2013-01-24 00:48:14 +06:00
parent 0273cd44b0
commit 292d7c3fdf
3 changed files with 20 additions and 11 deletions

View File

@@ -38,6 +38,18 @@
static char *fs_charset;
std::string Path::ToUTF8() const
{
if (value == nullptr)
return std::string();
char *path_utf8 = fs_charset_to_utf8(value);
if (path_utf8 == nullptr)
return std::string();
std::string result = value;
g_free(path_utf8);
return value;
}
char *
fs_charset_to_utf8(const char *path_fs)
{