[dokuwiki] Issue with aspell and dokuwiki

  • From: "Neulinger, Nathan" <nneul@xxxxxxx>
  • To: <dokuwiki@xxxxxxxxxxxxx>
  • Date: Mon, 12 Jun 2006 14:09:49 -0500

As currently written (darcs current), dokuwiki doesn't behave properly
for aspell use due to how it is doing pipe handling. It appears to be
related to content partially - likely due to the replacements of \n that
are taking place. 

Bsaically, it winds up hanging, almost certainly due to the pipe buffer
size interaction with the size of the data being sent to aspell.

As soon as I wrapped aspell with a temp-file writer and change it to
read from the temp file instead, it works reliably.

Quickest way to fix would be to have aspell write or read from a temp
file instead of bidirectional pipes, alternatively, fork and have a
dokuwiki child process write to aspell, but read the output from aspell
in the parent process. Either of those approached should solve the
buffering issue.

Interestingly, it doesn't appear to occur on larger topic sizes... For
the time being, the wrapper approach is working quite well for me.

-- Nathan
 
------------------------------------------------------------
Nathan Neulinger                       EMail:  nneul@xxxxxxx
University of Missouri - Rolla         Phone: (573) 341-6679
UMR Information Technology             Fax: (573) 341-4216

--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts:

  • » [dokuwiki] Issue with aspell and dokuwiki