> >  > What is the role of xmbsrtowcs? Why doesn't mbsrtowcs convert 0x5c to 
> > U<0x5c>?
> >
> >
> > I see.  I assume that it's a bug in mbsrtowcs.  (If you check, xmbsrtowcs
> >  isn't used anywhere, so the question is moot.)
> 
> Ok. But I suppose that the role of xdupmbsrtowcs is to avoid the same
> bug, am I right? So why isn't the bug corrected in mbsrtowcs?

No.  xdupmbsrtowcs has a different calling convention and different behavior
entirely.

As for correcting mbsrtowcs, I have no access to the C libraries on all the
systems bash runs on.  In some cases, I ship replacements; in other cases,
duplicate functions with slightly different names.

Chet


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                                Live Strong.
Chet Ramey, ITS, CWRU    [EMAIL PROTECTED]    http://tiswww.tis.case.edu/~chet/


Reply via email to