lua-users home
lua-l archive

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


Roberto Ierusalimschy <roberto@inf.puc-rio.br>于2015年11月19日周四 下午9:06写道:
> I don't suppose you have some solution to
> http://lua-users.org/lists/lua-l/2015-07/msg00540.html ?
> I was hoping it might have made it into this release.

What is the issue here? What would be the "correct" behavior? The
documentation is clear that "Option 's' expects a string without
embedded zeros" [1].

[1] http://www.lua.org/manual/5.3/manual.html#pdf-string.format

The common mistake is use string.format to concat strings may contain zeros.

Maybe supporting embedded zeros would be better ?