On Mon, Apr 9, 2012 at 12:17 PM, Mattias Gaertner
<[email protected]> wrote:
> On Mon, 9 Apr 2012 11:50:37 -0300
> Marcos Douglas <[email protected]> wrote:
>
>> On Mon, Apr 9, 2012 at 11:14 AM, Felipe Monteiro de Carvalho
>> <[email protected]> wrote:
>> >
>> > On Mon, Apr 9, 2012 at 2:37 PM, Marcos Douglas <[email protected]> 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

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to