[fpc-pascal] cwstrings unit and UTF8Decode()
Graeme Geldenhuys
mailinglists at geldenhuys.co.uk
Fri Mar 25 19:53:28 CET 2016
On 2016-03-25 12:23, Michael Van Canneyt wrote:
> Correction, this particular function does not depend on cwstrings.
When you say "this particular function" you are referring to the
UTF8Decode() function correct?
The documentation page for UTF8Decode has explicitly removed the
reference [that it requires a widestring manager] that was there before...
http://www.freepascal.org/docs-html/current/rtl/system/utf8decode.html
But, it does mention that it uses the low-level Utf8ToUnicode()
function. Now lets see that function's documentation.
http://www.freepascal.org/docs-html/current/rtl/system/utf8tounicode.html
And here it mentions that a widestring manager IS required for it to
function.
So if UTF8Decode depends on UTF8ToUnicode, then by definition UTF8Decode
also depends on a widestring manager.
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
My public PGP key: http://tinyurl.com/graeme-pgp
More information about the fpc-pascal
mailing list