Hello,

 

it seems that there is a bug in the method lucene_utf8towcs. As far as I 
understood this method 

should return length of the converted string, but is actually returns the count 
of converted bytes.

 

There should be:

 

  size_t ret = rp-result;                   // <-- this is the line

  if ( ret < result_length )

                *rp = '\0';

 

  return ret;

}

 

But there is:

  size_t ret = sp-str;

 

Please, could someone fix the bug in the master branch? 

 

Thanks, 

Jiri

 

 

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
CLucene-developers mailing list
CLucene-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers

Reply via email to