bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible eval builtin speedup?


From: Chet Ramey
Subject: Re: Possible eval builtin speedup?
Date: Wed, 12 Mar 2008 15:33:30 -0400

> >  > 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    chet@case.edu    http://tiswww.tis.case.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]