Problem: Creating a Ruby C extension using oniguruma (not onigmo)

I'm having a problem when I try to include oniguruma (v6.9.2) in my ruby C extension.
The regexp `foo([a-z]+)` with input `foobar` will not capture `bar` when running in Debian GNU/Linux 9.

I think it's colliding with Ruby's onigmo lib (modified oniguruma). But I can only replicate the
problem in Linux not macOS (Darwin).

If this is interesting to someone I have a git repo with all tests and a Dockerfile
that can be found here: https://github.com/voke/ruby-onig-issue

Should it be possible to use a different version of oniguruma for my Ruby C extension?

Best regards
Gustav

I’m having a problem when I try to include oniguruma (v6.9.2) in my ruby C extension.

The regexp foo([a-z]+) with input foobar will not capture bar when running in Debian GNU/Linux 9.

I think it’s colliding with Ruby’s onigmo lib (modified oniguruma). But I can only replicate the

problem in Linux not macOS (Darwin).

If this is interesting to someone I have a git repo with all tests and a Dockerfile

that can be found here: https://github.com/voke/ruby-onig-issue

Should it be possible to use a different version of oniguruma for my Ruby C extension?

Best regards

Gustav

Unsubscribe: mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe

<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

···


Oli Treadwell
olitreadwell.com

Software Engineer & Educator

oliver.treadwell@gmail.com

You are not unsubscribed; please use ruby-talk-request@ruby-lang.org email
address.

Oliver Treadwell <olitreadwell@gmail.com>, 10 Tem 2019 Çar, 05:56 tarihinde
şunu yazdı:

···

--

Oli Treadwell
olitreadwell.com
Software Engineer & Educator
oliver.treadwell@gmail.com

      <http://www.linkedin.com/in/olitreadwell&gt;
<http://twitter.com/olitreadwell&gt;

On Tue, Jul 9, 2019 at 9:29 AM <gustav@invoke.se> wrote:

I'm having a problem when I try to include oniguruma (v6.9.2) in my ruby
C extension.
The regexp `foo([a-z]+)` with input `foobar` will not capture `bar` when
running in Debian GNU/Linux 9.

I think it's colliding with Ruby's onigmo lib (modified oniguruma). But I
can only replicate the
problem in Linux not macOS (Darwin).

If this is interesting to someone I have a git repo with all tests and a
Dockerfile
that can be found here: GitHub - voke/ruby-onig-issue

Should it be possible to use a different version of oniguruma for my Ruby
C extension?

Best regards
Gustav

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

--