starwing/luautf8

Can't pass pattern matching tests

CheyiLin opened this issue · 2 comments

Hi I got following errors: (LuaJIT 2.1 git HEAD)

$ luajit-2.1.0-alpha test_pm.lua
testing pattern matching
+
... luajit-2.1.0-alpha: test_pm.lua:14: invalid capture index %-47
stack traceback:
    [C]: in function 'match'
    test_pm.lua:14: in function 'f1'
    test_pm.lua:91: in main chunk
    [C]: at 0x00404250

test.lua and test_compat.lua are all passed without errors.

Is it a known issue or a bug? Should I concerned it? Thanks.

LuaJIT 2.1 is Lua5.1 compatible, But luautf8 should work with Lua5.1 :(

I will look into this to see the reason.

Thanks for report this :)

fix it, close.