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?
> Possibly, this is a locale issue. Have you tried running with
> en_US.ISO8859-1 or whatever the local equivalent is?
I don't think OpenBSD's regex library cares about locale. (I'd be
interested to hear if anyone can confirm that (regexp-search (rx
printing) "foo") works with scsh 0.6.7 on FreeBSD or NetBSD.)
> (I have no explanation why it didn't occur with 0.6.2, but that was a
> long time ago.)
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?
|