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.
This commit is contained in:
+2
-2
@@ -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 \
|
||||
} \
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user