[Lazarus] Unicode on Windows

Marcos Douglas md at delfire.net
Mon Apr 9 17:30:05 CEST 2012


On Mon, Apr 9, 2012 at 12:17 PM, Mattias Gaertner
<nc-gaertnma at netcologne.de> wrote:
> On Mon, 9 Apr 2012 11:50:37 -0300
> Marcos Douglas <md at delfire.net> wrote:
>
>> On Mon, Apr 9, 2012 at 11:14 AM, Felipe Monteiro de Carvalho
>> <felipemonteiro.carvalho at gmail.com> wrote:
>> >
>> > On Mon, Apr 9, 2012 at 2:37 PM, Marcos Douglas <md at delfire.net> wrote:
>> > > The result is 5 not 3, but you did know this of course.
>> >
>> > If you study carefully UTF-8 and follow the code of the RTL routines
>> > you will find out that some routines work with UTF-8 without changes,
>> > regardless of the fact that Length returns the number of bytes in the
>> > string for ansistring.
>>
>> Agree.
>> But I did not wanted to check every single function if will work or
>> not. That would be very dangerous.
>
> The Lazarus developers already did this for you for the Lazarus sources.
>
> Mattias

For the Lazarus sources yes, but not for RTL.
I still think about:
DirectoryExists or DirectoryExistsUTF8
ForceDirectoriesUTF8 or ForceDirectories
Pos or UTF8Pos
etc

Depends what part of code you are...

Marcos Douglas




More information about the Lazarus mailing list