[fpc-pascal] string comparison on various platforms
M.Santhoff at t-online.de
Sat May 6 16:13:24 CEST 2006
Am Freitag, den 05.05.2006, 10:57 +0300 schrieb Geno Roupsky:
> 2006/5/3, Marc Santhoff <M.Santhoff at t-online.de>:
> from digging the sources I know, that on Unix-like Systems the
> comparison of strings is done according to the current locale
> "strcomp" is mapped to C-libs "strcoll").
> Can I assume that this is done similar on all other platforms,
> At least where is is possible, I mean where the OS supports locales
So I can use it the way it is on Windows, FreeBSD, Linux and (I think)
MacOS. That's pretty much.
> I'm asking myself if I have to consider something special when
> strings or if a comparison using the RTL function will allways
> "correct" (not talking of special sort orders for rarely
> Yes, if for any reason you stumble upon a bug it is most probably due
> to miss configuring the OS locale definitions.
No bug, I'm only planning.
Thank for helping,
More information about the fpc-pascal