From 7c5786479c1d617ec7c133f2c2b955726436267a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy <roberto@inf.puc-rio.br> Date: Fri, 3 May 2019 10:18:44 -0300 Subject: A few more improvements in 'luaO_pushvfstring' - 'L' added to the 'BuffFS' structure - '%c' does not handle control characters (it is not its business. This now is done by the lexer, who is the one in charge of that kind of errors.) - avoid the direct use of 'l_sprintf' in the Lua kernel --- testes/strings.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'testes') diff --git a/testes/strings.lua b/testes/strings.lua index bc123d1a..3e32f2c4 100644 --- a/testes/strings.lua +++ b/testes/strings.lua @@ -453,8 +453,7 @@ else str = "abc %c def" testpfs("I", str, string.byte("A")) - -- non-printable character - assert(callpfs("I", str, 255) == "abc <\\255> def") + testpfs("I", str, 255) str = string.rep("a", blen - 1) .. "%p" .. string.rep("cd", blen) testpfs("P", str, {}) -- cgit v1.2.3-55-g6feb