lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> > testes\utf8.lua: 69
> 
> The line in question is:
> 
> assert(utf8.len(s, 1, pi, -1, nonstrict) == i)
> 
> The effect is the same as
>     assert(utf8.len(s, 1, pi, true) == i)
> but perhaps the intended test was
>     assert(utf8.len(s, 1, pi, nonstrict) == i)
> which is only the same when nonstrict is truey.

Sure. Thanks to both of you.

-- Roberto