summaryrefslogtreecommitdiff
path: root/glib
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2009-02-21 17:46:30 +0100
committerCarlos Garcia Campos <carlosgc@gnome.org>2009-02-21 17:46:30 +0100
commit3ea5f45ad3e5a55e577a2e45f61b55932ed17013 (patch)
tree7ba2b4b87baa7c05a4fe1cad897a38b5a494ae86 /glib
parentb5989e4ffece6c1831610ee163d05fd80386a001 (diff)
[glib] Make sure filename is valid utf-8 for remote dests
Diffstat (limited to 'glib')
-rw-r--r--glib/poppler-action.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/glib/poppler-action.cc b/glib/poppler-action.cc
index f23b3439..24e16516 100644
--- a/glib/poppler-action.cc
+++ b/glib/poppler-action.cc
@@ -299,8 +299,7 @@ build_goto_remote (PopplerAction *action,
return;
}
- if (link->getFileName()->getCString ())
- action->goto_remote.file_name = g_strdup (link->getFileName()->getCString ());
+ action->goto_remote.file_name = _poppler_goo_string_to_utf8 (link->getFileName());
link_dest = link->getDest ();
named_dest = link->getNamedDest ();