lua-users home
lua-l archive

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


Hello Stefan,

Monday, April 16, 2007, 1:02:44 PM, you wrote:

SS> Roger Ivie wrote:
>> On Sun, 15 Apr 2007, 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.

>> Doesn't for me, using Lua 5.1 compiled with OpenWatcom. 
SS> Crashes on Vista too..

As the manual says, os.date() is a wrap for strftime() and msvcrt doesn't implement "%e". So if you used Microsoft Visual Studio to compile Lua, you get the crash. (As MSDN states, it's not C99 standard compliant)

-- 
Theodor-Iulian Ciobanu
Virus Researcher

e-mail: tciobanu@bitdefender.com

-----------------------------------------
Secure your every bit
-----------------------------------------