On Fri, Apr 13, 2012 at 1:45 PM, Hans-Peter Diettrich
<drdiettri...@aol.com> wrote:
> Felipe Monteiro de Carvalho schrieb:
>
>> On Fri, Apr 13, 2012 at 5:18 PM, Jürgen Hestermann
>> <juergen.hesterm...@gmx.de> wrote:
>>>
>>> But if you use a function from a (Free Pascal or Lazarus) library it is
>>> not
>>> clear which kind of encoding this function expects. As I already
>>> mentioned,
>>> for example CopyFile (from LCL) and FindFirst (from SysUtils) have no
>>> hint
>>> in their documentation on what encoding is expected. I know, somewhere it
>>> says that library x has enconding y but why wasn't this information
>>> written
>>> to the documentation for the indiviudal functions?
>>
>>
>> It would be a huge duplication of documentation to write in every
>> single Lazarus function that uses string that it expects UTF-8.
>
>
> It would be much easier to use an TFileName string type instead, for
> self-documenting declarations.
>
> DoDi

+1

Marcos Douglas

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to