File: 11_fix_spelling_error_in_binary.patch

package info (click to toggle)
canna 3.7p3-26
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,716 kB
  • sloc: ansic: 86,730; sh: 2,773; yacc: 403; cpp: 389; lex: 379; makefile: 59; awk: 7
file content (91 lines) | stat: -rw-r--r-- 3,041 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
Description: Fix spelling error in binaries.
Author: Francisco Vilmar Cardoso Ruviaro <francisco.ruviaro@riseup.net>
Last-Update: 2020-07-16

--- canna-3.7p3.orig/cmd/catdic/can.c
+++ canna-3.7p3/cmd/catdic/can.c
@@ -281,7 +281,7 @@ int sig;
      */
     (void) RkFinalize();
     fprintf(stderr,"\n");
-    Message(gettxt("cannacmd:232", "Process was intrrupted."));
+    Message(gettxt("cannacmd:232", "Process was interrupted."));
     exit(ERR_VALUE);
 }
 
@@ -323,7 +323,7 @@ int sig;
 	(void) RkFinalize();
     }
     
-    Message(gettxt("cannacmd:232", "Process was intrrupted."));
+    Message(gettxt("cannacmd:232", "Process was interrupted."));
     exit(ERR_VALUE);
 }
 
@@ -1475,7 +1475,7 @@ int force;
     }
     else {
       fprintf(stderr, gettxt("cannacmd:174",
-	     "Specified dictionary \"%s\" does not overwite.\n"),dicname2);
+	     "Specified dictionary \"%s\" does not overwrite.\n"),dicname2);
       ret = 1;
     }
     break;
--- canna-3.7p3.orig/cmd/crfreq/crfreq.c
+++ canna-3.7p3/cmd/crfreq/crfreq.c
@@ -199,7 +199,7 @@ main(argc, argv)
 
   if ((fr = create(freqfile, 0666)) == -1) {
     (void)close(fd);
-    (void)fprintf(stderr, "%s: cannot create freqency file %s\n", program, freqfile);
+    (void)fprintf(stderr, "%s: cannot create frequency file %s\n", program, freqfile);
     exit(1);
   }
 #ifdef __CYGWIN32__
--- canna-3.7p3.orig/server/convert.c
+++ canna-3.7p3/server/convert.c
@@ -887,7 +887,7 @@ ClientPtr *clientp ;
 	if ((ret = RkwStoreYomi( cxnum, (Ushort *)cbuf, ret )) >= 0) {
 	    size = getFirstKouho(cxnum, bunsetu, ret, &stat, &lbufp);
 	} else {
-	    PrintMsg("%s RkwStoreYomi faild\n", irerrhdr(client));
+	    PrintMsg("%s RkwStoreYomi failed\n", irerrhdr(client));
 	}
     } else {
 	print_context_error(client);
--- canna-3.7p3.orig/server/misc.c
+++ canna-3.7p3/server/misc.c
@@ -316,7 +316,7 @@ BecomeDaemon ()
 
 #ifndef __EMX__
     if ((parent = fork()) == -1) {
-	PrintMsg( "Fork faild\n" );
+	PrintMsg( "Fork failed\n" );
 	exit( 1 ) ;
     }
     if ( parent ) {
@@ -989,11 +989,11 @@ DetachTTY()
       sprintf(errfile,"%s/%s%d%s", ERRDIR, ERRFILE, PortNumberPlus, ERRFILE2);
     
       if((errfd = open(errfile, O_CREAT | O_RDWR | O_TRUNC, 0644)) < 0) {
-	(void)fprintf(stderr, "Warning: %s: %s open faild\n", Name, errfile);
+	(void)fprintf(stderr, "Warning: %s: %s open failed\n", Name, errfile);
 	(void)perror("");
       } else {
 	if(dup2( errfd, fileno(stderr)) < 0) {
-	  (void)fprintf(stderr, "Warning: %s: %s dup2 faild\n", Name, errfile);
+	  (void)fprintf(stderr, "Warning: %s: %s dup2 failed\n", Name, errfile);
 	  (void)perror("");
 	  close(fileno(stderr));
 	}
--- canna-3.7p3.orig/server/wconvert.c
+++ canna-3.7p3/server/wconvert.c
@@ -1153,7 +1153,7 @@ ClientPtr *clientp ;
                                sizeof(local_buffer) / sizeof(Ushort), &bufp);
 	  RkwGoTo(cxnum, bunsetu);
 	} else {
-	    PrintMsg("%s RkwStoreYomi faild\n",
+	    PrintMsg("%s RkwStoreYomi failed\n",
 		    irwerrhdr(client, wStoreYomi));
 	    stat = -1 ;
 	}