diff options
author | 2010-07-22 21:08:57 +0000 | |
---|---|---|
committer | 2010-07-22 21:08:57 +0000 | |
commit | 7990d6d9400231e6e6aa78753089ad8d9d7bdb8d (patch) | |
tree | 4e583a150ee63dc56e545dbfb732b5e1a50b9347 /app-text/aspell/files | |
parent | initial commit. (diff) | |
download | historical-7990d6d9400231e6e6aa78753089ad8d9d7bdb8d.tar.gz historical-7990d6d9400231e6e6aa78753089ad8d9d7bdb8d.tar.bz2 historical-7990d6d9400231e6e6aa78753089ad8d9d7bdb8d.zip |
Added patch to fix replace with accented characters, bug 327405, thank Rafael for report.
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'app-text/aspell/files')
-rw-r--r-- | app-text/aspell/files/aspell-0.60.6-replace-fix.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/app-text/aspell/files/aspell-0.60.6-replace-fix.patch b/app-text/aspell/files/aspell-0.60.6-replace-fix.patch new file mode 100644 index 000000000000..f5c766491338 --- /dev/null +++ b/app-text/aspell/files/aspell-0.60.6-replace-fix.patch @@ -0,0 +1,46 @@ +https://bugs.gentoo.org/show_bug.cgi?id=327405 +http://sourceforge.net/tracker/?func=detail&aid=2955373&group_id=245&atid=100245 + +diff -u -r1.19.2.5 check_funs.cpp +--- prog/check_funs.cpp 3 Mar 2010 05:16:24 -0000 1.19.2.5 ++++ prog/check_funs.cpp 3 Mar 2010 05:34:52 -0000 +@@ -327,7 +327,11 @@ + wnoutrefresh(choice_w); + doupdate(); + line.resize(0); ++#ifdef HAVE_WIDE_CURSES ++ wint_t c; ++#else + int c; ++#endif + noecho(); + int begin_x; + {int junk; getyx(choice_w, junk, begin_x);} +@@ -336,13 +340,12 @@ + while (true) { + handle_last_signal(); + #ifdef HAVE_WIDE_CURSES +- wint_t wi = 0; +- int res = wget_wch(choice_w, &wi); +- c = wi; ++ int res = wget_wch(choice_w, &c); ++ if (res == ERR) continue; + #else + c = wgetch(choice_w); +-#endif + if (c == ERR) continue; ++#endif + if (c == '\r' || c == '\n' || c == KEY_ENTER) + break; + if (c == control('c') || c == KEY_BREAK) { +@@ -373,7 +376,9 @@ + } else if (x < max_x && 32 <= c && c != '\x7F' && NOT_KEY /*c < 256*/) { + #ifdef HAVE_WIDE_CURSES + wchar_t wc = c; +- wins_nwstr(choice_w, &wc, 1); ++ cchar_t cc; ++ setcchar(&cc, &wc, 0, 0, NULL); ++ wins_wch(choice_w, &cc); + #else + winsch(choice_w, c); + #endif |