]> git.lyx.org Git - lyx.git/blobdiff - src/ispell.C
Alfredo's second patch
[lyx.git] / src / ispell.C
index 07db2583e74a30b79750309a245707b9daf9c14c..4cd221f1822fec91e4bb27ce7fdfd35cf92a5e90 100644 (file)
@@ -22,6 +22,7 @@
 #include "support/lstrings.h"
 
 #include <sys/select.h>
+#include <sys/time.h>
 
 #ifndef CXX_GLOBAL_CSTD
 using std::strcpy;
@@ -62,7 +63,7 @@ private:
 
 int LaunchIspell::start()
 {
-       command_ = "ispell";
+       command_ = lyxrc.isp_command;
        return runNonBlocking();
 }
 
@@ -182,7 +183,7 @@ ISpell::ISpell(BufferParams const & params, string const & lang)
 
        // static due to the setvbuf. Ugly.
        static char o_buf[BUFSIZ];
-       
+
        // We need to throw an exception not do this
        pipein[0] = pipein[1] = pipeout[0] = pipeout[1]
                = pipeerr[0] = pipeerr[1] = -1;
@@ -231,7 +232,7 @@ ISpell::ISpell(BufferParams const & params, string const & lang)
        child_.reset(li);
        if (li->start() == -1) {
                error_ = _("Could not create an ispell process.\nYou may not have "
-                       " the right languages installed.");     
+                       " the right languages installed.");
                child_.reset(0);
                return;
        }