[first message seems lost (not appear in any of ml archives), if this is duplicate - sorry.] Hello! I noticed that search for more than 1 double-width (japanese) character fails (search for single char works), and found that get_srch don't skip placeholders (UCS_NO_CHAR) for double-width character. Attached patch should solve this problem. PS just in case, same bug was in 0.12pre2 (not sure about earlier releases). PPS did not checked with --disable-utf-8; should be no-op with gcc warning about "cond. always false", I think.
--- elinks-0.12~pre3.orig/src/viewer/text/search.c +++ elinks-0.12~pre3/src/viewer/text/search.c @@ -174,6 +174,10 @@ get_srch(struct document *document) if (document->data[y].chars[x].attr & SCREEN_ATTR_UNSEARCHABLE) continue; + /* skip double-width char placeholders */ + if (c == UCS_NO_CHAR) + continue; + if (c > ' ') { add_srch_chr(document, c, x, y, 1); continue;
_______________________________________________ elinks-dev mailing list elinks-dev@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/elinks-dev