if (inst->fontinfo[0].charset != CS_NONE) {
if (!inst->direct_to_font) {
void write_clip(void *frontend, wchar_t * data, int len, int must_deselect){    struct gui_data *inst = (struct gui_data *)frontend;    if (inst->pasteout_data)	sfree(inst->pasteout_data);    if (inst->pasteout_data_utf8)	sfree(inst->pasteout_data_utf8);    /*     * Set up UTF-8 paste data. This only happens if we aren't in     * direct-to-font mode using the D800 hack.     */    if (inst->fontinfo[0].charset != CS_NONE) {	wchar_t *tmp = data;	int tmplen = len;	inst->pasteout_data_utf8 = smalloc(len*6);	inst->pasteout_data_utf8_len = len*6;	inst->pasteout_data_utf8_len =	    charset_from_unicode(&tmp, &tmplen, inst->pasteout_data_utf8,				 inst->pasteout_data_utf8_len,				 CS_UTF8, NULL, NULL, 0);	inst->pasteout_data_utf8 =	    srealloc(inst->pasteout_data_utf8, inst->pasteout_data_utf8_len);    } else {	inst->pasteout_data_utf8 = NULL;	inst->pasteout_data_utf8_len = 0;    }    inst->pasteout_data = smalloc(len);    inst->pasteout_data_len = len;    wc_to_mb(line_codepage, 0, data, len,	     inst->pasteout_data, inst->pasteout_data_len,	     NULL, NULL);    if (gtk_selection_owner_set(inst->area, GDK_SELECTION_PRIMARY,				GDK_CURRENT_TIME)) {	gtk_selection_add_target(inst->area, GDK_SELECTION_PRIMARY,				 GDK_SELECTION_TYPE_STRING, 1);	gtk_selection_add_target(inst->area, GDK_SELECTION_PRIMARY,				 inst->compound_text_atom, 1);	if (inst->pasteout_data_utf8)	    gtk_selection_add_target(inst->area, GDK_SELECTION_PRIMARY,				     inst->utf8_string_atom, 1);    }}