Use g_filename_display_name instead of g_filename_to_utf8
This commit is contained in:
parent
835ee73b41
commit
96c03baba7
@ -290,7 +290,7 @@ _moo_bookmark_set_path (MooBookmark *bookmark,
|
||||
g_return_if_fail (bookmark != NULL);
|
||||
g_return_if_fail (path != NULL);
|
||||
|
||||
display_path = g_filename_to_utf8 (path, -1, NULL, NULL, NULL);
|
||||
display_path = g_filename_display_name (path);
|
||||
g_return_if_fail (display_path != NULL);
|
||||
|
||||
g_free (bookmark->path);
|
||||
|
@ -704,7 +704,7 @@ delete_file (G_GNUC_UNUSED MooFileSystem *fs,
|
||||
if (_moo_remove (path))
|
||||
{
|
||||
int err = errno;
|
||||
char *path_utf8 = g_filename_to_utf8 (path, -1, NULL, NULL, NULL);
|
||||
char *path_utf8 = g_filename_display_name (path);
|
||||
g_set_error (error, MOO_FILE_ERROR,
|
||||
_moo_file_error_from_errno (err),
|
||||
"Could not delete file '%s': %s",
|
||||
|
Loading…
x
Reference in New Issue
Block a user