| Index: google.patch
|
| diff --git a/google.patch b/google.patch
|
| index b1ef4c96bb2ad5b4ff0600e7a658f0c0d78b9c17..5d21b9834b75adb5667efbcd666b7a98f59b6544 100644
|
| --- a/google.patch
|
| +++ b/google.patch
|
| @@ -4,7 +4,7 @@ RCS file: /cvsroot/hunspell/hunspell/src/hunspell/affixmgr.cxx,v
|
| retrieving revision 1.41
|
| diff -u -r1.41 affixmgr.cxx
|
| --- src/hunspell/affixmgr.cxx 16 Dec 2011 09:15:34 -0000 1.41
|
| -+++ src/hunspell/affixmgr.cxx 20 Dec 2012 23:40:03 -0000
|
| ++++ src/hunspell/affixmgr.cxx 21 Dec 2012 02:19:35 -0000
|
| @@ -14,8 +14,14 @@
|
|
|
| #include "csutil.hxx"
|
| @@ -195,7 +195,7 @@ RCS file: /cvsroot/hunspell/hunspell/src/hunspell/affixmgr.hxx,v
|
| retrieving revision 1.15
|
| diff -u -r1.15 affixmgr.hxx
|
| --- src/hunspell/affixmgr.hxx 13 Oct 2011 13:41:54 -0000 1.15
|
| -+++ src/hunspell/affixmgr.hxx 20 Dec 2012 23:40:03 -0000
|
| ++++ src/hunspell/affixmgr.hxx 21 Dec 2012 02:19:35 -0000
|
| @@ -18,6 +18,40 @@
|
| class PfxEntry;
|
| class SfxEntry;
|
| @@ -280,7 +280,7 @@ RCS file: /cvsroot/hunspell/hunspell/src/hunspell/filemgr.cxx,v
|
| retrieving revision 1.5
|
| diff -u -r1.5 filemgr.cxx
|
| --- src/hunspell/filemgr.cxx 23 Jun 2011 09:21:50 -0000 1.5
|
| -+++ src/hunspell/filemgr.cxx 20 Dec 2012 23:40:03 -0000
|
| ++++ src/hunspell/filemgr.cxx 21 Dec 2012 02:19:35 -0000
|
| @@ -7,6 +7,32 @@
|
|
|
| #include "filemgr.hxx"
|
| @@ -325,7 +325,7 @@ RCS file: /cvsroot/hunspell/hunspell/src/hunspell/filemgr.hxx,v
|
| retrieving revision 1.3
|
| diff -u -r1.3 filemgr.hxx
|
| --- src/hunspell/filemgr.hxx 15 Apr 2010 11:22:08 -0000 1.3
|
| -+++ src/hunspell/filemgr.hxx 20 Dec 2012 23:40:03 -0000
|
| ++++ src/hunspell/filemgr.hxx 21 Dec 2012 02:19:35 -0000
|
| @@ -7,6 +7,30 @@
|
| #include "hunzip.hxx"
|
| #include <stdio.h>
|
| @@ -368,7 +368,7 @@ RCS file: /cvsroot/hunspell/hunspell/src/hunspell/hashmgr.cxx,v
|
| retrieving revision 1.12
|
| diff -u -r1.12 hashmgr.cxx
|
| --- src/hunspell/hashmgr.cxx 23 Jun 2011 09:21:50 -0000 1.12
|
| -+++ src/hunspell/hashmgr.cxx 20 Dec 2012 23:40:03 -0000
|
| ++++ src/hunspell/hashmgr.cxx 21 Dec 2012 02:19:35 -0000
|
| @@ -12,8 +12,14 @@
|
|
|
| // build a hash table from a munched word list
|
| @@ -738,7 +738,7 @@ RCS file: /cvsroot/hunspell/hunspell/src/hunspell/hashmgr.hxx,v
|
| retrieving revision 1.3
|
| diff -u -r1.3 hashmgr.hxx
|
| --- src/hunspell/hashmgr.hxx 15 Apr 2010 11:22:08 -0000 1.3
|
| -+++ src/hunspell/hashmgr.hxx 20 Dec 2012 23:40:03 -0000
|
| ++++ src/hunspell/hashmgr.hxx 21 Dec 2012 02:19:35 -0000
|
| @@ -8,10 +8,25 @@
|
| #include "htypes.hxx"
|
| #include "filemgr.hxx"
|
| @@ -836,7 +836,7 @@ RCS file: /cvsroot/hunspell/hunspell/src/hunspell/htypes.hxx,v
|
| retrieving revision 1.3
|
| diff -u -r1.3 htypes.hxx
|
| --- src/hunspell/htypes.hxx 6 Sep 2010 07:58:53 -0000 1.3
|
| -+++ src/hunspell/htypes.hxx 20 Dec 2012 23:40:03 -0000
|
| ++++ src/hunspell/htypes.hxx 21 Dec 2012 02:19:35 -0000
|
| @@ -1,6 +1,16 @@
|
| #ifndef _HTYPES_HXX_
|
| #define _HTYPES_HXX_
|
| @@ -860,7 +860,7 @@ RCS file: /cvsroot/hunspell/hunspell/src/hunspell/hunspell.cxx,v
|
| retrieving revision 1.29
|
| diff -u -r1.29 hunspell.cxx
|
| --- src/hunspell/hunspell.cxx 23 Jun 2011 09:21:50 -0000 1.29
|
| -+++ src/hunspell/hunspell.cxx 20 Dec 2012 23:40:03 -0000
|
| ++++ src/hunspell/hunspell.cxx 21 Dec 2012 02:19:35 -0000
|
| @@ -7,20 +7,37 @@
|
|
|
| #include "hunspell.hxx"
|
| @@ -944,7 +944,18 @@ diff -u -r1.29 hunspell.cxx
|
|
|
| // make a copy of src at destination while removing all leading
|
| // blanks and removing any trailing periods after recording
|
| -@@ -322,6 +351,9 @@
|
| +@@ -108,7 +137,9 @@
|
| + if (utf8) {
|
| + *nc = u8_u16(dest_utf, MAXWORDLEN, dest);
|
| + // don't check too long words
|
| +- if (*nc >= MAXWORDLEN) return 0;
|
| ++ // TODO(rouslan): Remove the interim change below when this patch lands:
|
| ++ // http://sf.net/tracker/?func=detail&aid=3595024&group_id=143754&atid=756395.
|
| ++ if (*nc >= MAXWORDLEN - 1) return 0;
|
| + if (*nc == -1) { // big Unicode character (non BMP area)
|
| + *pcaptype = NOCAP;
|
| + return nl;
|
| +@@ -322,6 +353,9 @@
|
|
|
| int Hunspell::spell(const char * word, int * info, char ** root)
|
| {
|
| @@ -954,7 +965,7 @@ diff -u -r1.29 hunspell.cxx
|
| struct hentry * rv=NULL;
|
| // need larger vector. For example, Turkish capital letter I converted a
|
| // 2-byte UTF-8 character (dotless i) by mkallsmall.
|
| -@@ -586,6 +618,13 @@
|
| +@@ -586,6 +620,13 @@
|
| if (!len)
|
| return NULL;
|
|
|
| @@ -968,7 +979,7 @@ diff -u -r1.29 hunspell.cxx
|
| // word reversing wrapper for complex prefixes
|
| if (complexprefixes) {
|
| if (word != w2) {
|
| -@@ -675,6 +714,9 @@
|
| +@@ -675,6 +716,9 @@
|
|
|
| int Hunspell::suggest(char*** slst, const char * word)
|
| {
|
| @@ -978,7 +989,7 @@ diff -u -r1.29 hunspell.cxx
|
| int onlycmpdsug = 0;
|
| char cw[MAXWORDUTF8LEN];
|
| char wspace[MAXWORDUTF8LEN];
|
| -@@ -1921,13 +1963,21 @@
|
| +@@ -1921,13 +1965,21 @@
|
|
|
| Hunhandle *Hunspell_create(const char * affpath, const char * dpath)
|
| {
|
| @@ -1006,7 +1017,7 @@ RCS file: /cvsroot/hunspell/hunspell/src/hunspell/hunspell.hxx,v
|
| retrieving revision 1.6
|
| diff -u -r1.6 hunspell.hxx
|
| --- src/hunspell/hunspell.hxx 21 Jan 2011 17:30:41 -0000 1.6
|
| -+++ src/hunspell/hunspell.hxx 20 Dec 2012 23:40:03 -0000
|
| ++++ src/hunspell/hunspell.hxx 21 Dec 2012 02:19:35 -0000
|
| @@ -5,6 +5,10 @@
|
| #include "suggestmgr.hxx"
|
| #include "langnum.hxx"
|
| @@ -1063,7 +1074,7 @@ RCS file: /cvsroot/hunspell/hunspell/src/hunspell/replist.hxx,v
|
| retrieving revision 1.2
|
| diff -u -r1.2 replist.hxx
|
| --- src/hunspell/replist.hxx 15 Apr 2010 11:22:09 -0000 1.2
|
| -+++ src/hunspell/replist.hxx 20 Dec 2012 23:40:03 -0000
|
| ++++ src/hunspell/replist.hxx 21 Dec 2012 02:19:35 -0000
|
| @@ -2,6 +2,12 @@
|
| #ifndef _REPLIST_HXX_
|
| #define _REPLIST_HXX_
|
| @@ -1083,7 +1094,7 @@ RCS file: /cvsroot/hunspell/hunspell/src/hunspell/suggestmgr.cxx,v
|
| retrieving revision 1.24
|
| diff -u -r1.24 suggestmgr.cxx
|
| --- src/hunspell/suggestmgr.cxx 14 Feb 2011 21:47:24 -0000 1.24
|
| -+++ src/hunspell/suggestmgr.cxx 20 Dec 2012 23:40:03 -0000
|
| ++++ src/hunspell/suggestmgr.cxx 21 Dec 2012 02:19:35 -0000
|
| @@ -12,9 +12,110 @@
|
|
|
| const w_char W_VLINE = { '\0', '|' };
|
| @@ -1281,7 +1292,7 @@ RCS file: /cvsroot/hunspell/hunspell/src/hunspell/suggestmgr.hxx,v
|
| retrieving revision 1.5
|
| diff -u -r1.5 suggestmgr.hxx
|
| --- src/hunspell/suggestmgr.hxx 21 Jan 2011 22:10:24 -0000 1.5
|
| -+++ src/hunspell/suggestmgr.hxx 20 Dec 2012 23:40:03 -0000
|
| ++++ src/hunspell/suggestmgr.hxx 21 Dec 2012 02:19:35 -0000
|
| @@ -52,7 +52,11 @@
|
|
|
|
|
|
|