http://bugs.winehq.org/show_bug.cgi?id=2159
------- Additional Comments From phc.cai@wanadoo.fr 2006-15-01 15:27 ------- The solution to solve temporary this bug is simple, you have to replace the data with single quote by a double quote into the file :
setup.qrk : Building:config =
{
AutoSave = "20"
}
default.qrk : for all the values Building:config =
{
DefPoly = "128x128x128"
WallWidth = "-8"
mpOffset = "0 0 64"
mpZoom = "2"
mpRotate = "15"
ForceAngleStep = "15"
AutoSave = "10"
AutoSaveRun = "1"
LinearWarning = "1"
//BezierCenterX = "-32"
//BezierCenterY = "-32"
Form = "MapBuilding"
}
But the issue is that each time that you save your configuration (map/building => autosave ). The value of autosave in setup.qrk is set to '20' and when you restart quark you will have the same issue because of single quote.
Also if you want to solve definitevely this issue you can update the file mapeditor.py like that :
def autosavetime(): #minutes = int(quarkx.setupsubset(SS_MAP, "Building")["AutoSave"]) #return minutes * 60000 return 10 * 60000
It is not very elegant but it efficient => wine quark.exe (create new map) WORKS !
This means also that wine don't handle the quote and double quote as windows do it .... But I don't know how to solve it ...
hereafter a Python print of the value received from delphi workspace with single quote :
SS_MAP ForceAngleStep= (15.0,) SS_MAP AutoSave= A SS_MAP AutoSaveRun= 1
hereafter a Python print of the value received from delphi workspace with double quote :
SS_MAP ForceAngleStep= 15 SS_MAP AutoSave= 10 SS_MAP AutoSaveRun= 1
this the original code where the erros occurs : def autosavetime(): minutes = int(quarkx.setupsubset(SS_MAP, "Building")["AutoSave"]) return minutes * 60000
We try to find solution but we don't arrive , the issue is really in wine the single quote has not "undertsand" in the same way in wine/delphi and in windows/delphi.
From our point of view it is blocking bug because all the WINE/DELPHI/python
application which used text file with values in single or double quote are impacted.