Thank you for reporting the defect and contributing the fix.
> while ((*cptr1 != 0) && (*cptr2 != 0))
> {
> wint_t wch1 = towupper(*cptr1);
> wint_t wch2 = towupper(*cptr2);
> if (wch1 != wch2)
> break;
>
> cptr1++;
> cptr2++;
> }
> return (int)( towupper(*cptr1) - towupper(*cptr2) );
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^With this minor change, the fix has been incorporated into the source code base. rahul
