diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2008-08-21 19:02:24 +0200 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2008-08-21 19:02:24 +0200 |
commit | 0e2efa0fce5bf059ce85d3e3bec2293b405ec3c9 (patch) | |
tree | 0794841cdc42412ff7b3c907c67f43bc4b330bc2 /glib | |
parent | 15a73704ab6b009ca5e07c08f0b12d970adc387d (diff) |
[glib] Make sure name and descripction are valid utf8 strings
Diffstat (limited to 'glib')
-rw-r--r-- | glib/poppler-attachment.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/glib/poppler-attachment.cc b/glib/poppler-attachment.cc index fcdc47f7..db77f116 100644 --- a/glib/poppler-attachment.cc +++ b/glib/poppler-attachment.cc @@ -88,9 +88,9 @@ _poppler_attachment_new (PopplerDocument *document, attachment = (PopplerAttachment *) g_object_new (POPPLER_TYPE_ATTACHMENT, NULL); if (emb_file->name ()) - attachment->name = g_strdup (emb_file->name ()->getCString ()); + attachment->name = _poppler_goo_string_to_utf8 (emb_file->name ()); if (emb_file->description ()) - attachment->description = g_strdup (emb_file->description ()->getCString ()); + attachment->description = _poppler_goo_string_to_utf8 (emb_file->description ()); attachment->size = emb_file->size (); |