Ulrich Drepper <yyyyyyy@xxxxxxxxxx> wrote, on Mon 14 Aug 2000:
>
> SYNOPSIS
> #include <string.h>
>
> int strseq (const char *s1, const char *s2);
>
> DESCRIPTION
>
> The strseq() function shall compare the string pointed to by s1 to
> the string pointed to by s2, both interpreted as appropriate to the
> collation sequence information in the LC_COLLATE category of the
> current locale.
How does this handle collation symbols? I think it needs to specify
that s1 and s2 must each point to a string containing either one
collation element or one collation symbol (plus the terminating null).
Otherwise, it's not clear whether:
strseq("[.ch.]", "z")
is meant to compare the ch collating symbol, or the sequence of six
bytes '[', '.', etc., against "z".
--
Geoff Clare yyy@xxxxxxxxxxx
UniSoft Limited, London, England. yyy@xxxxxxxxxx
|