[fpc-devel] lazarus bug report + fix: Utf8ToUnicode doesn't work correctly

Tomas Hajny XHajT03 at mbox.vol.cz
Wed May 4 13:36:02 CEST 2005


On Wed, May 4, 2005 12:07, Jonas Maebe said:
>
> On 4 mei 2005, at 12:04, Michael Van Canneyt wrote:
>
>>> It contains a fixed version of the Utf8ToUnicode function. Since it
>>> is part of
>>> the rtl, I close this lazarus issue and send you this message. I did
>>> not test
>>> the fixed version.
>>
>> The files in the zip file are not usable; They're in some unicode
>> format, which
>> I can't use nor check on Linux.
>
> They're plain UTF-8.

Aren't they rather UCS-2 (as used under Win32)? I think that UTF-8 only
uses 1 byte for ASCII 0-127, whereas these files have 0 after every single
character.

Tomas





More information about the fpc-devel mailing list