monotone-devel
[Top][All Lists]
Advanced

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

Re: automate lua test failure Was: [Monotone-devel] "memory access viola


From: Thomas Keller
Subject: Re: automate lua test failure Was: [Monotone-devel] "memory access violation" in win32 0.42 when canceling blocked `mtn diff --external` using Ctrl+C
Date: Wed, 07 Jan 2009 13:06:12 +0100
User-agent: Thunderbird 2.0.0.18 (X11/20081112)

Thomas Keller schrieb:
> Zbigniew Zagórski schrieb:
>> Yep, i've ran test suite before publishing binaries. There were no ...
>> err,  almost no failures.
>> At least no significant ones.
>>
>> Failures:
>>    util_mtnopt       because windows doesn't have "/bin/sh" usually installed
>>    automate_lua  because "3.4" on polish locale is "3,4" grrr
> 
> The last failure is intersting. I had exactly the same problem during
> the development (because also in the German locale lua converts the dot
> to the [correct] comma), but I could fix it by using another way to
> convert numbers to strings.
> 
> Could you please verify that you get under your locale the same output?
> 
> $ lua
> Lua 5.1.2  Copyright (C) 1994-2007 Lua.org, PUC-Rio
>> print(tostring(3.1))
> 3.1

I found this [0] explaining that tostring() uses sprintf() which might
be locale-aware or not. The workarounds aren't pretty...

Thomas.

[0] http://lua-users.org/lists/lua-l/2002-04/msg00079.html

-- 
GPG-Key 0x160D1092 | address@hidden | http://thomaskeller.biz
Please note that according to the EU law on data retention, information
on every electronic information exchange might be retained for a period
of six months or longer: http://www.vorratsdatenspeicherung.de/?lang=en


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]