Re: can [[:digit:]] match something other than 0123456789?

2018-05-22 Thread keld
I Listed digits that were consequitive. I did not list japanese nor chinese digits. But it would be easy to also include japanese and chinese digits. you could just include character classes like zero, one, two etc. Best regards Keld On Tue, May 22, 2018 at 02:15:16PM +0200, Joerg Schilling

Re: can [[:digit:]] match something other than 0123456789?

2018-05-22 Thread Joerg Schilling
Stephane Chazelas wrote: > Note that having [x-y] be based on collation order would mean > that things like [a-z] would also match on uppercase letters in > the latin script in locales where case is not considered in the > first weight for sorting (as is typical for

Re: can [[:digit:]] match something other than 0123456789?

2018-05-22 Thread Joerg Schilling
"k...@keldix.com" wrote: > Well, if ctype.h does not cover the functionality that we want, then we need > to > specify new functionality. WG14 is looking into some reentrant functionality > in this area, in something that could be a TS. Could you please explain what

Re: can [[:digit:]] match something other than 0123456789?

2018-05-22 Thread Chet Ramey
On 5/22/18 6:32 AM, Joerg Schilling wrote: >> bash's [a-z] still matches on A..Y or B..Z though (source of >> much consusion, many bugs and lots of ranting), and that >> makes me realise that bash is actually one of those utilities > > This strange and unexpected behavior did cause once that

Re: can [[:digit:]] match something other than 0123456789?

2018-05-22 Thread Stephane CHAZELAS
2018-05-22 12:32:20 +0200, Joerg Schilling: [...] > > bash's [a-z] still matches on A..Y or B..Z though (source of > > much consusion, many bugs and lots of ranting), and that > > makes me realise that bash is actually one of those utilities > > This strange and unexpected behavior did cause once