[Lazarus] TProcess, UTF8, Windows

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Apr 13 17:54:09 CEST 2012


On Fri, 13 Apr 2012 17:32:17 +0200
Felipe Monteiro de Carvalho <felipemonteiro.carvalho at gmail.com> wrote:

> On Fri, Apr 13, 2012 at 5:18 PM, Jürgen Hestermann
> <juergen.hestermann at 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.

Maybe a simple link UTF-8 to a topic in lazutf8 is sufficient.

 
> It would be like writing in every function that string means
> longstring (aka ansistring), that the routine is not using a
> shortstring ... well, this is obvious.


Mattias
 




More information about the Lazarus mailing list