scsh-users
[Top] [All Lists]

Re: Regexp errors on OpenBSD

To: "Matthew R. Dempsky" <mrd@alkemio.org>
Subject: Re: Regexp errors on OpenBSD
From: Michael Sperber <sperber@informatik.uni-tuebingen.de>
Date: Tue, 24 Oct 2006 08:04:13 +0200
Cc: scsh-users@scsh.net
List-id: <scsh-users.list-id.scsh.net>
"Matthew R. Dempsky" <mrd@alkemio.org> writes:

> On Mon, Oct 23, 2006 at 08:25:13AM +0200, Michael Sperber wrote:
>> Yes, this has come up before.  OpenBSD's regexps, for some reason,
>> don't seem to allow characters above the ASCII range.
>
> A nuissance to be sure (and I'm looking into if it can be fixed), but
> couldn't scsh easily avoid passing non-ASCII characters in cases where
> they're unnecessary?

It could, but then you'd still have problems with the cases where
they're necessary.

> I tried setting a breakpoint on regcomp and seeing what string scsh
> passes to the regex library, and scsh 0.6.7 passes the string
> mentioned in my original post, while scsh 0.6.2 passes "[\t-\r -~]".
> Any ideas why this might have changed?

Probably to fix bugs related to handling characters above 127 (which
people do work with).

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla

<Prev in Thread] Current Thread [Next in Thread>