From: simonmar Date: Thu, 14 Feb 2002 14:03:25 +0000 (+0000) Subject: [project @ 2002-02-14 14:03:25 by simonmar] X-Git-Tag: nhc98-1-18-release~1113 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=20efbbc79f95fc4743d5d4f1fdad79eaada01ffa;p=haskell-directory.git [project @ 2002-02-14 14:03:25 by simonmar] Remove support for "collate" which appears to be a locale-independent way of interpreting character ranges like [a-z]. Anyway it relies on stuff internal to FreeBSD's libc which doesn't appear to be easy to extract, so just disable it. --- diff --git a/cbits/regex/regcomp.c b/cbits/regex/regcomp.c index f54c10e..1621788 100644 --- a/cbits/regex/regcomp.c +++ b/cbits/regex/regcomp.c @@ -51,7 +51,8 @@ static char sccsid[] = "@(#)regcomp.c 8.5 (Berkeley) 3/20/94"; #include #include "regex.h" -#include "collate.h" +// removed collate stuff --SDM +// #include "collate.h" #include "utils.h" #include "regex2.h" @@ -826,10 +827,14 @@ register cset *cs; if (start == finish) CHadd(cs, start); else { +// remove collate stuff --SDM +#if 0 if (__collate_load_error) { (void)REQUIRE((uch)start <= (uch)finish, REG_ERANGE); +#endif for (i = (uch)start; i <= (uch)finish; i++) CHadd(cs, i); +#if 0 } else { (void)REQUIRE(__collate_range_cmp(start, finish) <= 0, REG_ERANGE); for (i = CHAR_MIN; i <= CHAR_MAX; i++) { @@ -839,6 +844,7 @@ register cset *cs; CHadd(cs, i); } } +#endif } break; }