http://bugs.winehq.org/show_bug.cgi?id=19799
Summary: cscript crashes if you call WScript.Arguments(0). Breaks Chromium build setup. Product: Wine Version: 1.1.27 Platform: PC URL: http://src.chromium.org/viewvc/chrome/trunk/tools/depo t_tools/bootstrap/win/get_file.js?revision=14457&pathr ev=14457 OS/Version: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: ole32 AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
Chromium has a nifty self-bootstrapping source code management script (see http://dev.chromium.org/developers/how-tos/install-gclient ) gclient downloads svn for you before it runs it. This used to use a little wget binary checked in to the source tree (!) but now uses a little javascript script, get_file.js http://src.chromium.org/viewvc/chrome/trunk/tools/depot_tools/bootstrap/win/... (which looks pretty similar to the vb in http://www.xefteri.com/articles/show.cfm?id=7 )
If you read the script, it's kind of scary; there's ADO and all sorts of weird shit going on, just to download a file. And since it uses cscript, I think you have to do 'winetricks wsh56' to try it. But guess what Wine fails on? After a little effort, I reduced that script down to the single line:
WScript.Arguments(0);
Yup, that crashes. But if you do 'winetricks dcom98', it succeeds.