Author: petergibbs
Date: Thu Feb 21 06:58:25 2008
New Revision: 25931
Modified:
trunk/languages/lua/pmc/luastring.pmc
trunk/languages/lua/t/os.t
Log:
luastring.pmc: The %S shortcut for %Ss fails at the end of the format string
os.t: Correct expected output for year 1000 to match lua's output
Modified: trunk/languages/lua/pmc/luastring.pmc
==============================================================================
--- trunk/languages/lua/pmc/luastring.pmc (original)
+++ trunk/languages/lua/pmc/luastring.pmc Thu Feb 21 06:58:25 2008
@@ -864,7 +864,7 @@
}
MMD_DEFAULT: {
real_exception(INTERP, NULL, ILL_INHERIT,
- "attempt to compare string with %S",
+ "attempt to compare string with %Ss",
VTABLE_name(INTERP, value));
}
}
Modified: trunk/languages/lua/t/os.t
==============================================================================
--- trunk/languages/lua/t/os.t (original)
+++ trunk/languages/lua/t/os.t Thu Feb 21 06:58:25 2008
@@ -206,7 +206,7 @@
CODE
/^
946\d+\n
-nil\n
+-306\d+\n
$/x
OUTPUT