]> git.pld-linux.org Git - packages/aspell.git/blob - aspell-.33-fix2.diff
- bump release to 10, Epoch: 2 (for allow upgrade from RH),
[packages/aspell.git] / aspell-.33-fix2.diff
1 To apply this patch cd into the Aspell source directory and then
2   patch -p0 < <this file>
3
4 It is meant to be applied against Aspell .33.7.*
5
6 This patch will:
7 - Workaround a bug in Pspell where multi-byte words are not getting
8   null terminated properly.
9 - Truly fix a bug in suggest.cc so that Aspell will suggest correctly
10   when typo-analysis is not used such as when sug-mode is ultra 
11   or bad spellers.
12
13 --- lib/suggest.cc~     Wed Aug  1 03:40:49 2001
14 +++ lib/suggest.cc      Fri Nov  9 00:10:16 2001
15 @@ -455,7 +455,7 @@
16    void Working::score_list() {
17      if (near_misses.empty()) return;
18  
19 -    bool no_soundslike = strcmp(manager->lang().soundslike_name(), "none") != 0;
20 +    bool no_soundslike = strcmp(manager->lang().soundslike_name(), "none") == 0;
21  
22      if (parms.use_typo_analysis) {
23        
24 --- pspell-module/manager.cc~   Wed Jan 31 22:08:58 2001
25 +++ pspell-module/manager.cc    Sun Dec  9 22:51:14 2001
26 @@ -59,7 +59,9 @@
27      if (w == 0) return 0;
28      temp_str = "";
29      from_internal->convert(w, temp_buf);
30 -    return temp_str.c_str();
31 +    char t[4] = {0};
32 +    temp_str.append(t, 4);
33 +    return temp_str.data();
34    }
35  
36    template <>
37 @@ -70,7 +72,9 @@
38      wi.get_word(tmp,local_info.convert);
39      temp_str = "";
40      from_internal->convert(tmp.c_str(), temp_buf);
41 -    return temp_str.c_str();
42 +    char t[4] = {0};
43 +    temp_str.append(t, 4);
44 +    return temp_str.data();
45    }
46  
47    template <typename T>
This page took 0.058588 seconds and 3 git commands to generate.