I filed in a patch for
http://bugs.apertium.org/cgi-bin/bugzilla/show_bug.cgi?id=108

Basically the problem was that
  while(wchar_t val = readAnalysis(input)) {...}

failed upon finding the null wchar_t so we need to iterate until the
file eof. The problem is with the current implementation we cannot
have a condition to continue until the end of file as
analysis_wrapper_null_flush() expecs otherwise.

So in order to not change the analysis_wrapper_null_flush() I encapsulated
analysis() into analysis_base() and made:

void
FSTProcessor::analysis(FILE *input, FILE *output)
{

   if(getNullFlush())
   {
     analysis_wrapper_null_flush(input, output);
   }
   else
   {
     analysis_wrapper_no_null_flush(input, output);
   }
}

This is probably not a good solution as but it gives a hint about the 
problem.

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to