>>>>> "Allan" == Allan Rae <[EMAIL PROTECTED]> writes:

Allan> Lars, if it is required by Posix to use toupper() for the
Allan> character comparisons then I found the remaining problem.  All
Allan> our tag arrays like lyxrcTags are sorted according to lowercase
Allan> ordering (ie. tolower()).

For what it's worth, the implmentation to strcasecmp() provided as a
replacement in GNU fileutils uses tolower() to do the
comparison. Thus, I think we can safely do the same.

Allan> I've checked the man pages for strcasecmp on Solaris 2.5 and
Allan> linux but neither specifically states that its implementation
Allan> is posix compliant or whether toupper or tolower is used.  

Digital Unix does not say it either.

Allan> The character causing all the remaining problems is the '_' which
Allan> appears between the upper and lower case letters in ASCII.

Well spotted. I did not think about that...

Allan> So, do I resort all the tag arrays or do you change toupper()
Allan> to tolower() in compare_no_case() ?

I think we should use tolower in compare_no_case. However, I don't
know what Lars' (?) comments about not being posix mean here.

JMarc

Reply via email to