'os.date' checks arguments before passing them to 'strftime'

This commit is contained in:
Roberto Ierusalimschy
2007-05-03 17:49:29 -03:00
parent 4eb49163c6
commit e7fb0d8a6f
2 changed files with 27 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: luaconf.h,v 1.86 2006/09/18 14:03:18 roberto Exp roberto $
** $Id: luaconf.h,v 1.87 2007/02/07 17:46:20 roberto Exp roberto $
** Configuration file for Lua
** See Copyright Notice in lua.h
*/
@@ -657,6 +657,18 @@ union luai_Cast { double l_d; long l_l; };
#endif
/*
@@ LUA_STRFTIMEOPTIONS is the list of valid conversion specifier
@* characters for the 'strftime' function;
@@ LUA_STRFTIMEPREFIX is the list of valid modifiers for
@* that function.
** CHANGE them if you want to use non-ansi options specific to your system.
*/
#define LUA_STRFTIMEOPTIONS "aAbBcdHIjmMpSUwWxXyYz%"
#define LUA_STRFTIMEPREFIX ""
/*
@@ lua_popen spawns a new process connected to the current one through
@* the file streams.