[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ports/1036: spell checking in 'pico' does not work




>Number:         1036
>Category:       ports
>Synopsis:       spell checking in 'pico' does not work
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 29 17:20:02 MST 1999
>Last-Modified:
>Originator:     Jason Downs
>Organization:
OpenBSD
>Release:        2.6
>Environment:
	
	System      : OpenBSD 2.6
	Architecture: OpenBSD.i386
	Machine     : i386
>Description:
	Pressing ^T in pico starts ispell with no arguments, causing it to
print its help message.
>How-To-Repeat:
	Press ^T in pico.
>Fix:
	Add this patch to mail/pine/patches:

*** pico/osdep/spell.unx.orig	Thu Aug 27 15:57:49 1998
--- pico/osdep/spell.unx	Wed Dec 29 16:04:23 1999
***************
*** 85,90 ****
--- 85,99 ----
      setimark(0, 1);
      emlwrite("Checking spelling...", NULL); 	/* greetings */
  
+     if((sp = (char *)getenv("SPELL")) == NULL)
+       sp = SPELLER;
+ 
+     /* This code only works with "spell", which doesn't exist, and
+        alt_speller is only set via command line -s argument.
+        God I hate pine. */
+     if (strstr(sp, "ispell") != NULL)
+       alt_speller = sp;
+ 
      if(alt_speller)
        return(alt_editor(1, 0));			/* f == 1 means fork speller */
  
***************
*** 92,100 ****
  	emlwrite("Can't write temp file for spell checker", NULL);
  	return(-1);
      }
- 
-     if((sp = (char *)getenv("SPELL")) == NULL)
-       sp = SPELLER;
  
      sprintf(cb, "( %s ) < %s", sp, fn);		/* pre-use buffer! */
      if((p = P_open(cb)) == NULL){ 		/* read output from command */
--- 101,106 ----

>Audit-Trail:
>Unformatted: