starwing / luautf8

a utf-8 support module for Lua and LuaJIT.
MIT License
406 stars 67 forks source link

Can't pass pattern matching tests #2

Closed CheyiLin closed 9 years ago

CheyiLin commented 10 years ago

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.

starwing commented 10 years ago

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 :)

starwing commented 9 years ago

fix it, close.