[fpc-pascal] Bug in AnsiCompareText of cwstring
Jonas Maebe
jonas.maebe at elis.ugent.be
Wed Nov 27 16:24:40 CET 2013
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: 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.
Jonas
More information about the fpc-pascal
mailing list