lua-users home
lua-l archive

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


Peter Odding wrote:
Last note, if any of you are running Windows, try lua.exe -e "os.date'%e'". Does that crash? Because it does for me, on all >= XP SP2 installations I've tried. This means it's already possible to crash

Using LuaBinaries:

E:\Dev
> lua50.exe -e "print(os.date'%e')"
lua50.exe: <command line>:1: `date' format too long
stack traceback:
        [C]: in function `date'
        <command line>:1: in main chunk
        [C]: ?

E:\Dev
> lua51.exe -e "print(os.date'%e')"
lua51.exe: (command line):1: 'date' format too long
stack traceback:
        [C]: in function 'date'
        (command line):1: in main chunk
        [C]: ?

E:\Dev
> lua51.exe -e "print(os.date'%c')"
04/16/07 12:55:13

E:\Dev
> lua51.exe -e "print(os.date'%x')"
04/16/07

Might have been fixed?

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --