elm_cnp: use defined charset before falling back to default
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>
Thu, 14 Jul 2016 11:48:29 +0000 (13:48 +0200)
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>
Thu, 14 Jul 2016 11:58:26 +0000 (13:58 +0200)
the chance is very high that some glyphs are not fitting into the
default (US-ASCII) so better falling back here on specified utf8.

@ref T3972

src/lib/elementary/elm_cnp.c

index 663e89e..f9fdd14 100644 (file)
@@ -2991,14 +2991,14 @@ _wl_elm_cnp_selection_get(const Evas_Object *obj, Elm_Sel_Type selection, Elm_Se
             (format & ELM_SEL_FORMAT_TEXT))
           {
              types[++i] = "application/x-elementary-markup";
-             types[++i] = "text/plain";
              types[++i] = "text/plain;charset=utf-8";
+             types[++i] = "text/plain";
           }
 
         if (format & ELM_SEL_FORMAT_HTML)
           {
-             types[++i] = "text/html";
              types[++i] = "text/html;charset=utf-8";
+             types[++i] = "text/html";
           }
 
         if (i < 0) return EINA_FALSE;