Bug#205325: glibc: please add strnatcmp / strnatcasecmp
On Thu, Aug 14, 2003 at 02:53:37PM +1000, Martin Pool wrote:
> On 14 Aug 2003, Anand Kumria <wildfire@progsoc.org> wrote:
> > Package: glibc
> > Version: unavailable; reported 2003-08-14
> > Severity: wishlist
> >
> > Hi there,
> >
> > I'm surprised there isn't already something similiar to strnatcmp in glibc
> > <URL: http://sourcefrog.net/projects/natsort/> but both functions would
> > certainly be usable.
> >
> > The license appear to allow for the inclusion of both functions, so hopefully
> > this isn't a huge to deal to get included.
>
> glibc has strverscmp().
strnatcmp() is much nicer IMO. Far more descriptive.
> The algorithm is similar but not quite the same.
> You might still argue for including strnatcmp but it's probably
> not worthwhile.
well you also have strnatcasecmp() too.
> The glibc maintainers might (?) want it to be
> internationalized/wcharized if it was going to be merged.
Maybe, let's await feedback from the libc maintainer first. Maybe
they'll do that work for us when merging it in.
> The strnatcmp licence was necessary to merge it into Apache, which is
> not possible with the GNU implementation.
Does that mean you would be unwilling to relicense it - should it be
required - to get it into GNU libc?
Cheers,
Anand
--
`` We are shaped by our thoughts, we become what we think.
When the mind is pure, joy follows like a shadow that never
leaves. '' -- Buddha, The Dhammapada
Reply to: