[fpc-pascal] CRITICAL Bug in Lnet DNSLookup failure problem

2013-11-27 Thread Dennis Poon
when using lnet to connect to a remote server at DomainName : Port e.g. yahoo.com : 80 in file lCommon.pp line 492: function StrToNetAddr(const IP : String) : Sockets.in_addr;inline; begin result := Sockets.StrToNetAddr(IP); end; The above function did not raise exception when the IP parame

Re: [fpc-pascal] Re: Objects in dynamic arrays

2013-11-27 Thread Andreas Schneider
On Saturday, November 16, 2013, at 02:36 Martin wrote: > On 16/11/2013 01:03, Timothy Groves wrote: >> >> Here's the code I *actually* have in the method: >> >> var >> index, >> last : integer; >> begin >> last := length (t_volumes) - 1; >> index := 0; >> while ((t_volumes [index] <> t_cu

Re: [fpc-pascal] Bug in AnsiCompareText of cwstring

2013-11-27 Thread Mattias Gaertner
On Wed, 27 Nov 2013 18:06:48 +0100 Mattias Gaertner wrote: > On Wed, 27 Nov 2013 16:24:40 +0100 > Jonas Maebe wrote: > > >[...] > > You're right: > > https://www.gnu.org/software/coreutils/faq/#Sort-does-not-sort-in-normal-order_0021 > > > > So there is no bug in either FPC or glibc. The loc

Re: [fpc-pascal] Bug in AnsiCompareText of cwstring

2013-11-27 Thread Mattias Gaertner
On Wed, 27 Nov 2013 16:24:40 +0100 Jonas Maebe wrote: >[...] > You're right: > https://www.gnu.org/software/coreutils/faq/#Sort-does-not-sort-in-normal-order_0021 > > So there is no bug in either FPC or glibc. The locale is simply > defined like that on Linux. I learned a new thing. Thank y

Re: [fpc-pascal] Bug in AnsiCompareText of cwstring

2013-11-27 Thread Jonas Maebe
On 27 Nov 2013, at 16:13, Martin Schreiber wrote: On Wednesday 27 November 2013 13:05:29 Mattias Gaertner wrote: Result: o and . gives 1 oc and .o gives 1 oce and .ou gives -18 Possibly as intended because the collation of the current locale ignores punctuation. You're right: htt

Re: [fpc-pascal] Bug in AnsiCompareText of cwstring

2013-11-27 Thread Martin Schreiber
On Wednesday 27 November 2013 13:05:29 Mattias Gaertner wrote: > Hi all, > > When using the cwstring widestringmanager the function AnsiCompareText > seems to have a bug. > > For example: > > {$mode objfpc}{$H+} > > uses > Classes, SysUtils, cwstring; > begin > writeln('o and . gives ',Ansi

Re: [fpc-pascal] Bug in AnsiCompareText of cwstring

2013-11-27 Thread Jonas Maebe
On 27 Nov 2013, at 13:05, Mattias Gaertner wrote: When using the cwstring widestringmanager the function AnsiCompareText seems to have a bug. For example: {$mode objfpc}{$H+} uses Classes, SysUtils, cwstring; begin writeln('o and . gives ',AnsiCompareText('o','.')); writeln('oc and .

[fpc-pascal] Bug in AnsiCompareText of cwstring

2013-11-27 Thread Mattias Gaertner
Hi all, When using the cwstring widestringmanager the function AnsiCompareText seems to have a bug. For example: {$mode objfpc}{$H+} uses Classes, SysUtils, cwstring; begin writeln('o and . gives ',AnsiCompareText('o','.')); writeln('oc and .o gives ',AnsiCompareText('oc','.o'));