tech-userlevel archive

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

Re: Next steps for /bin/sh



On Sat, Mar 12, 2016 at 01:37:13PM +0000, David Laight wrote:
> On Fri, Mar 11, 2016 at 06:24:05AM +0100, Joerg Sonnenberger wrote:
> > On Fri, Mar 11, 2016 at 07:53:16AM +0700, Robert Elz wrote:
> > > One of those changes was to stop using the shell's own private isalpha()
> > > macros (they have different names - and "stop using" meant to redefine them
> > > in terms of <ctype.h> and isalpha() etc.)
> > 
> > We can also switch to using isalpha_l and friends with explicit C
> > locale.
> 
> For the C locale you want isalpha_C() that uses the C locale without
> doing any kind of locale lookup.
> ie functions that just index a const global ctype[] data array.

That's essentially what isalpha_l can be doing, it just doesn't have
inlining (yet).

Joerg


Home | Main Index | Thread Index | Old Index