summaryrefslogtreecommitdiffstats
path: root/source/dialogs/dmenu.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-04-10 12:05:34 +0200
committerDave Davenport <qball@gmpclient.org>2016-04-10 12:05:34 +0200
commite54e012500ecf2ebd35bbfef669f3971fb199bad (patch)
treeb6dea9aecbe38249641042f9f1906533d7918018 /source/dialogs/dmenu.c
parentc3b236db28538d5f53dd085c3d52092f3d3e7fcf (diff)
Issue: #381: Try to handle X11 input and UTF-8 better.
In window_get_text_prop do conversion when input is of type STRING. (latin1) to utf8. Dmenu: don't skip invalid lines, but try to display as much as possible. Window mode: Double check all input from X.
Diffstat (limited to 'source/dialogs/dmenu.c')
-rw-r--r--source/dialogs/dmenu.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/dialogs/dmenu.c b/source/dialogs/dmenu.c
index 02594572..2ca1540e 100644
--- a/source/dialogs/dmenu.c
+++ b/source/dialogs/dmenu.c
@@ -92,10 +92,8 @@ static char **get_dmenu ( DmenuModePrivateData *pd, FILE *fd, unsigned int *leng
data[l - 1] = '\0';
l--;
}
- if ( !g_utf8_validate ( data, l, NULL ) ) {
- fprintf ( stderr, "String: '%s' is not valid utf-8\n", data );
- continue;
- }
+ data = rofi_force_utf8 ( data );
+ printf ( "data: %s\n", data );
retv[( *length )] = data;
data = NULL;