Jim Hill:

It looks as though the buffer stores unicode as utf-8,
and i guess the error may be in conversion
from utf-8 to utf-16 when saving.

  The buffer is in UTF-8 and there is a bug that can break writing on
128K boundaries. There's even a TODO comment saying it is wrong. Fixed
by rounding down block to start of character.

  There was a second bug when reading UTF-16 where the conversion
loop was terminating late causing writes beyond the end of the buffer
and spurious text. Fixed with an extra test in the iterator. If Scott
Kirkwood (or anyone else interested in this area) is reading then it
would be an idea for there to be some more checking of my fix.

  Changes in CVS and available from
http://scintilla.sourceforge.net/scite.zip Source
http://scintilla.sourceforge.net/wscite.zip Windows executable

  Neil
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to