From 11dca18a2d148e5a6463aba783567a3815424963 Mon Sep 17 00:00:00 2001 From: Quentin Rameau Date: Mon, 19 Jul 2021 21:23:32 +0200 Subject: Improve non-ASCII character search handling Before, the XA_STRING would only let use ASCII characters properly. Now UTF-8 characters should be handled correctly. --- config.def.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 3a417f0..1355ba3 100644 --- a/config.def.h +++ b/config.def.h @@ -68,10 +68,10 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE | #define SETPROP(r, s, p) { \ .v = (const char *[]){ "/bin/sh", "-c", \ "prop=\"$(printf '%b' \"$(xprop -id $1 "r" " \ - "| sed -e 's/^"r"(STRING) = \"\\(.*\\)\"/\\1/' " \ + "| sed -e 's/^"r"(UTF8_STRING) = \"\\(.*\\)\"/\\1/' " \ " -e 's/\\\\\\(.\\)/\\1/g')\" " \ "| dmenu -p '"p"' -w $1)\" " \ - "&& xprop -id $1 -f "s" 8s -set "s" \"$prop\"", \ + "&& xprop -id $1 -f "s" 8u -set "s" \"$prop\"", \ "surf-setprop", winid, NULL \ } \ } -- cgit 1.4.1