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: Mon, 23 Oct 2006 08:25:13 +0200
Cc: scsh-users@scsh.net
List-id: <scsh-users.list-id.scsh.net>
"Matthew R. Dempsky" <mrd@alkemio.org> writes:

> I installed scsh 0.6.7 on OpenBSD 3.9, but I'm having problems with
> regular expressions:
>
>     $ ( echo '(regexp-search (rx printing) "foo")'; echo ',exit' ) | ./go | 
> cat -v
>     Welcome to scsh 0.6.7 (R6RS)
>     Type ,? for help.
>     > 
>     Error: Posix regexp ([^M-2M-3M-9M-<M-=M->^A-^H^N-^_^?-M-^_]) : invalid 
> character range
>            #{Regexp}
>     1>
>
> (cat -v because the M-* and ^* sequences aren't ASCII characters and
> aren't pasting properly otherwise.)
>
> Any ideas what's up?  The same input to OpenBSD's scsh 0.6.2 package
> runs without error.  I've tried using gdb to track down where the
> error's originating, but after I hit the breakpoint at
> posix_compile_regexp, trying to step forward at all immediately takes
> me to the above error. :/

Yes, this has come up before.  OpenBSD's regexps, for some reason,
don't seem to allow characters above the ASCII range.  Possibly, this
is a locale issue.  Have you tried running with en_US.ISO8859-1 or
whatever the local equivalent is?

(I have no explanation why it didn't occur with 0.6.2, but that was a
long time ago.)

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

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