Email List: Xaustin-group-lX
[All Lists]

Re: AI 2000-05-010: proposed interface

To: yyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Re: AI 2000-05-010: proposed interface
From: yyy@xxxxxxxxxxx (Geoff Clare)
Date: Tue, 15 Aug 2000 12:05:41 +0100
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

<Prev in Thread] Current Thread [Next in Thread>