On Sun, Nov 23, 2008 at 1:50 AM, JoshyFun <[EMAIL PROTECTED]> wrote:
>
> Not checked right now, but as no valid sequences, no surrogates
> support.

So UTF8Decode only supports UCS2 output!  Now this is why I think
supporting UTF-8 in fpGUI and Lazarus LCL was a good idea. By design
(utf-8), you have to support the whole unicode range. With UTF-16,
many people take shortcuts and actually only support UCS2 - and it
goes unnoticed like this case for many years!


I'm busy writing unit tests for all the conversion functions and
implementing some new helper functions as well. Hopefully this will
highlight all the UCS2 shotcuts in UTF-16 implementation and other
possible conversion issues.


Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to