Package: aspelll
User: ubuntu-de...@lists.ubuntu.com
Version: 0.60.6-4
Severity: wishlist
Tags: patch

Hello dear maintainer,

In ubuntu we have backported patch from CVS to support german umlauts

refer: https://bugs.launchpad.net/bugs/77414

for more info.

Attached is the backported patch,

regards

-- 
Bhavani Shankar.R
https://launchpad.net/~bhavi, a proud ubuntu community  member.
What matters in life is application of mind!,
It makes great sense to have some common sense..!
diff -Nru aspell-0.60.6/debian/patches/11_special_chars.diff aspell-0.60.6/debian/patches/11_special_chars.diff
--- aspell-0.60.6/debian/patches/11_special_chars.diff	1970-01-01 05:30:00.000000000 +0530
+++ aspell-0.60.6/debian/patches/11_special_chars.diff	2010-03-24 21:14:38.000000000 +0530
@@ -0,0 +1,44 @@
+diff -Nur aspell-0.60.6/prog/check_funs.cpp aspell-0.60.6.new/prog/check_funs.cpp
+--- aspell-0.60.6/prog/check_funs.cpp	2006-11-18 11:29:29.000000000 +0100
++++ aspell-0.60.6.new/prog/check_funs.cpp	2010-03-24 16:44:12.343040048 +0100
+@@ -327,7 +327,11 @@
+     wnoutrefresh(choice_w);
+     doupdate();
+     line.resize(0);
+-    int c;
++#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
diff -Nru aspell-0.60.6/debian/patches/series aspell-0.60.6/debian/patches/series
--- aspell-0.60.6/debian/patches/series	2010-01-28 22:07:13.000000000 +0530
+++ aspell-0.60.6/debian/patches/series	2010-03-25 01:46:37.000000000 +0530
@@ -5,3 +5,4 @@
 05_doc_fix.diff
 07_filter.diff
 10_autotools.diff
+11_special_chars.diff

Reply via email to