[fpc-pascal] Libxml2 - How to get messages on Linux?

Gabor Boros mlnglsts at bgss.hu
Wed May 23 19:11:22 CEST 2018


Same problem with Win64. So not Linux specific.

Gabor

2018. 05. 22. 10:06 keltezéssel, Gabor Boros írta:
> Hi All,
> 
> I need to accomplish validate XML files with an XSD. Found libxml in 
> packages and works as expected with Win32. But I have problem with 
> messages on Linux 64bit. Got %s instead the real message text. I use the 
> below code to get the messages. Any idea why not works with Linux64 bit?
> 
> var
>    SL_Warning,SL_Error:TStringList;
> 
> procedure SchemaValidityWarningFunc(ctx: Pointer; const msg: PChar);
> begin
>    SL_Warning.Add(msg);
> end;
> 
> procedure SchemaValidityErrorFunc(ctx: Pointer; const msg: PChar);
> begin
>    SL_Error.Add(msg);
> end;
> 
> Gabor
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal



More information about the fpc-pascal mailing list