Re: [resent][PATCH] elinks 0.12pre3 fails to search double-width characters
"Yuriy M. Kaminskiy" <[email protected]> Mon, 29 Jun 2009 18:22:53 +0400
| Newsgroups | gmane.comp.web.links |
|---|---|
| Message-ID | <[email protected]> |
Kalle Olavi Niemitalo wrote: >> PPS did not checked with --disable-utf-8; should be no-op with gcc >> warning about "cond. always false", I think. > In ELinks, configure --enable-debug adds -Werror Ok, fixed. > ELinks is currently licensed under GPLv2 only. I hope we can > eventually change the licence to also allow later versions of > GPL and permit linking with OpenSSL. Do you allow such > relicensing for your patch? (A more permissive licence would be > fine too.) I'm perfectly fine with GPL v2-or-later (or, considering amount of added code ;-), any other OSL-approved license too). > Do you give permission to add your name and email address to the > commit information, to the AUTHORS file, and similar places > (e.g. a list of contributors in release notes)? Eww, fine. _______________________________________________ elinks-dev mailing list [email protected] http://linuxfromscratch.org/mailman/listinfo/elinks-dev
elinks-0.12pre3-doublewidth-search-2.patch
(text/x-diff, 507 B)
Fixes failure to search for more than one double-width character.
--- elinks-0.12~pre3.orig/src/viewer/text/search.c
+++ elinks-0.12~pre3/src/viewer/text/search.c
@@ -174,6 +174,12 @@ get_srch(struct document *document)
if (document->data[y].chars[x].attr & SCREEN_ATTR_UNSEARCHABLE)
continue;
+#ifdef CONFIG_UTF8
+ /* skip double-width char placeholders */
+ if (c == UCS_NO_CHAR)
+ continue;
+#endif
+
if (c > ' ') {
add_srch_chr(document, c, x, y, 1);
continue;