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'));
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
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
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:
On Wed, 27 Nov 2013 18:06:48 +0100
Mattias Gaertner nc-gaert...@netcologne.de wrote:
On Wed, 27 Nov 2013 16:24:40 +0100
Jonas Maebe jonas.ma...@elis.ugent.be wrote:
[...]
You're right:
https://www.gnu.org/software/coreutils/faq/#Sort-does-not-sort-in-normal-order_0021
So there is