On Tue, 14 Jun 2005 00:35:50 -0700, sergej.vasiljev wrote:
Hello,
while doing strings pattern matching we use '/377' character.
But this char is illegal for some Asian locales on Solaris.
For example, strcoll returns error because this character is outside
the domain of the collating sequence.
Which other character can be used instead?
The C language itself doesn't define specific character sets. If \377 is
not a valid character in a particular locale the question arises as to why
it is appearing in data for that locale. You'll need to decide how you
want to interpret such values.
It may be that \377 is being used as an escape character for multibyte
character encoding and as such it would not by itself be considered a
valid character.
Ultimately these issues are platform-specific so to resolve this for
Solaris or at least get a Solaris-aware solution you might try asking in
comp.unix.solaris.
Lawrence