Hello,

I'm really excited about the abiword project, and want to help out.  So I
downloaded the source from CVS, got the other stuff I needed
(abidistfiles, expat, etc), and got everything to compile and run nicely.
When I ran my new copy though, I got an error message on startup that
said:

Can't open /usr/local/AbiSuite/dictionaryamerican.hash

...and the spell checker didn't work.  I looked in /usr/local/AbiSuite and
saw that there was a directory called dictionary that contained a file
called american.hash.

I figured, "Great, they just left out a slash somewhere!  This is a
perfect thing for me to try and fix..."  So I found a == in
abi/src/wp/ap/unix/ap_UnixApp.cpp that looked like it should be a !=, and
changed it.  It looks like everything works now...  I'm not sure if I'm
missing something, and I'm not sure if I even made this patch correctly!
(is it just
"cvs diff -c abi/src/wp/ap/unix/ap_UnixApp.cpp > patch.diff"
?),
but I thought I should just jump in, send it out here, and if I was
off-base somehow, the friendly denizens of this list would let me know. :)

The patch is attached.

Will Robinson
[EMAIL PROTECTED]
Index: abi/src/wp/ap/unix/ap_UnixApp.cpp
===================================================================
RCS file: /cvsroot/abi/src/wp/ap/unix/ap_UnixApp.cpp,v
retrieving revision 1.83
diff -c -r1.83 ap_UnixApp.cpp
*** abi/src/wp/ap/unix/ap_UnixApp.cpp   2001/03/19 17:01:13     1.83
--- abi/src/wp/ap/unix/ap_UnixApp.cpp   2001/03/21 18:23:39
***************
*** 200,206 ****
        UT_ASSERT((szSpellCheckWordList) && (*szSpellCheckWordList));
        
        UT_String szPathname = szISpellDirectory;
!       if (szISpellDirectory[szPathname.size()-1]=='/')
          szPathname += "/";
        szPathname += szSpellCheckWordList;
            
--- 200,206 ----
        UT_ASSERT((szSpellCheckWordList) && (*szSpellCheckWordList));
        
        UT_String szPathname = szISpellDirectory;
!       if (szISpellDirectory[szPathname.size()-1] != '/')
          szPathname += "/";
        szPathname += szSpellCheckWordList;
            

Reply via email to