From nobody@FreeBSD.org  Tue Mar 29 11:53:55 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id D82CE106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 29 Mar 2011 11:53:55 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id C7D588FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 29 Mar 2011 11:53:55 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p2TBrtU9054196
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 29 Mar 2011 11:53:55 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p2TBrs4j054195;
	Tue, 29 Mar 2011 11:53:54 GMT
	(envelope-from nobody)
Message-Id: <201103291153.p2TBrs4j054195@red.freebsd.org>
Date: Tue, 29 Mar 2011 11:53:54 GMT
From: Martin Laabs <spamtrap@martinlaabs.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: print/lyx-devel spell checking with enchant does not work
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: aldis@bsdroot.lv

>Number:         156034
>Category:       ports
>Synopsis:       print/lyx-devel spell checking with enchant does not work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 29 12:00:21 UTC 2011
>Closed-Date:    Mon Dec 26 01:57:51 UTC 2011
>Last-Modified:  Mon Dec 26 01:57:51 UTC 2011
>Originator:     Martin Laabs
>Release:        8.1-STABLE
>Organization:
-
>Environment:
FreeBSD pc.martinlaabs.de 8.1-STABLE FreeBSD 8.1-STABLE #2: Fri Oct 29 12:55:22 CEST 2010     martin@pc.martinlaabs.de:/usr/obj/usr/src/sys/MYKERNEL  i386

>Description:
With enchant as spell checker lyx-devel does not spell check any word. All words are marked as correct.
I use lyx-devel-2.0.0.r1 and enchant-1.6.0.
I solved this problem by commenting a check out that evaluates to false, even if the dictionary exists. I do not why this check fails since the code seems to be a 1:1 copy out of the enchant API documentation.
However - without the check lyx spellchecking works as expected.
>How-To-Repeat:
Install lyx-devel, enable the enchant option with make config, install enchant and a dictionary and try spell checking a document out of lyx
>Fix:
@ -70,10 +70,17 @@ enchant::Dict * EnchantChecker::Private::addSpeller(string const & lang)
 {
 	enchant::Broker * instance = enchant::Broker::instance();
 
-	if (!instance->dict_exists(lang))
+
+/*	The following staement evaluates to false even if the
+        directory exist.
+        If the directory really does not exist the following
+        statment ( if (dict)... ) will fail so we do not need
+        this error handling for the moment
+
+        if (!instance->dict_exists(lang))
 		// FIXME error handling?
 		return 0;
-
+*/
 	enchant::Dict * dict = instance->request_dict(lang);
 
 	if (dict) {


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Tue Mar 29 12:00:33 UTC 2011 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=156034 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: aldis@bsdroot.lv
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/156034: print/lyx-devel spell checking with enchant does not work
Date: Tue, 29 Mar 2011 12:00:29 UT

 Maintainer of print/lyx-devel,
 
 Please note that PR ports/156034 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/156034
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: Aldis Berjoza <aldis@bsdroot.lv>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/156034: print/lyx-devel spell checking with enchant does
 not work
Date: Sat, 4 Jun 2011 13:34:34 +0300

 On Tue, 29 Mar 2011 12:00:29 UT
 Edwin Groothuis <edwin@FreeBSD.org> wrote:
 
 > Maintainer of print/lyx-devel,
 > 
 > Please note that PR ports/156034 has just been submitted.
 > 
 > If it contains a patch for an upgrade, an enhancement or a bug fix
 > you agree on, reply to this email stating that you approve the patch
 > and a committer will take care of it.
 > 
 > The full text of the PR can be found at:
 >     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/156034
 > 
 
 Sorry it takes me so long. I will look at this in about 20-30 days,
 when I'm free of university. Then I will also update lyx ports. 
 
 -- 
 Aldis Berjoza
   http://www.bsdroot.lv/
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Mon Dec 26 00:43:10 UTC 2011 
State-Changed-Why:  
To submitter: since this PR was submitted, lyx-devel had been deleted 
in favor of an update to lyx.  Do you still experience this problem? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=156034 
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Mon Dec 26 01:57:39 UTC 2011 
State-Changed-Why:  
Submitter's email address bounces. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=156034 
>Unformatted:
