[fpc-pascal] LibXML2

2023-06-12 Thread David Connolly via fpc-pascal
Hi all,

I upgraded to Debian 12 today and I've noticed some weird behaviour with
libxml2.

Free Pascal Compiler version 3.2.2+dfsg-20 [2023/03/30] for x86_64

program xml;
uses
xml2;
begin
end.

This program compiles fine, but will not run against the updated version of
libXML2.

The call of xmlXPathInit seems to be causing the error.

Regards,
David Connolly
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] LibXML2

2023-06-12 Thread David Connolly via fpc-pascal
Many thanks.

On Mon, 12 Jun 2023 at 16:37, gabor via fpc-pascal <
fpc-pascal@lists.freepascal.org> wrote:

> Currently, libxml2 headers are outdated and partially
> incorrect/incomplete. I updated the headers a couple of years ago. You
> can find the patch file here:
>
> https://gitlab.com/freepascal.org/fpc/source/-/issues/38905
>
> MichaƂ.
>
> W dniu 2023-06-12 o 17:12, David Connolly via fpc-pascal pisze:
> > Hi all,
> >
> > I upgraded to Debian 12 today and I've noticed some weird behaviour with
> > libxml2.
> >
> > Free Pascal Compiler version 3.2.2+dfsg-20 [2023/03/30] for x86_64
> >
> > program xml;
> > uses
> > xml2;
> > begin
> > end.
> >
> > This program compiles fine, but will not run against the updated version
> > of libXML2.
> >
> > The call of xmlXPathInit seems to be causing the error.
> >
> > Regards,
> > David Connolly
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


[fpc-pascal] encodeURLElement in latest FPC source build

2023-08-15 Thread David Connolly via fpc-pascal
Hi all,

Not sure if this is a bug, but I'm seeing some strange behaviour with
encodeURLElement on the latest build from source.

See attached file url.pas.

I'm using Debian 12.

Regards,
David Connolly
{$mode delphi}
{$H+}
{$codepage utf8}
program url;

uses
	cwstring,
	fphttpclient;

var
	ansi	: ansiString = 'Hello ANSI World!';
	uni	: unicodeString = 'Hello UNICODE World!';
	utf8	: UTF8String = 'Hello UTF8 World!';
	raw	: RawByteString = 'Hello RAW World!';

begin
	writeln( 'lit = ', 'Hello LITERAL World!' );
	writeln( 'lit = ', encodeURLElement( 'Hello LITERAL World!' ) );
	writeln( '' );
	
	writeln( 'ansi= ', ansi );
	writeln( 'ansi= ', encodeURLElement( ansi ) );
	writeln( '' );

	writeln( 'unicode = ', uni );
	writeln( 'unicode = ', encodeURLElement( uni ) );
	writeln( '' );

	writeln( 'uft8= ', utf8 );
	writeln( 'uft8= ', encodeURLElement( utf8 ) );
	writeln( '' );
	
	writeln( 'raw = ', raw );	
	writeln( 'raw = ', encodeURLElement( raw ) );
	writeln( '' );
end.___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal