Thanks Frédéric! <div><br></div><div>You answered before I completed the cygwin installation :-)</div><div><br></div><div>Pierre<br><br><div class="gmail_quote">2011/6/4 Frédéric Trottier-Hébert <span dir="ltr"><<a href="mailto:fred.hebert@erlang-solutions.com">fred.hebert@erlang-solutions.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word">All steps of development, how to run tests, etc. are described in the Erlang github wiki: <a href="https://github.com/erlang/otp/wiki" target="_blank">https://github.com/erlang/otp/wiki</a><div>
<br></div><div>You can see the submitting patches page (<a href="https://github.com/erlang/otp/wiki/Submitting-patches" target="_blank">https://github.com/erlang/otp/wiki/Submitting-patches</a>) for more details on the exact topic you're looking for.</div>
<div><br></div><div>Hope this helps.<br><div>
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div style="word-wrap:break-word">
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div style="word-wrap:break-word">
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div style="word-wrap:break-word">
<div><br>--</div><div>Fred Hébert</div><div><div><a href="http://www.erlang-solutions.com" target="_blank">http://www.erlang-solutions.com</a></div></div><div><br></div></div></span></span></div></span></div></span></span><br>

</div>
<br><div><div><div></div><div class="h5"><div>On 2011-06-04, at 18:33 PM, Pierre Rouleau wrote:</div><br></div></div><blockquote type="cite"><div><div></div><div class="h5"><div>OK, I think I know why escript is not accepting scrips unless it's invoked as escript.exe.</div>
<div><br></div><div>I took a look at erts/etc/common/escript.c which I believe is the source for escript.</div><div><br>
</div><div>I think one of the problem under Windows is the fact that when  escript's main() is looking for the escript basename, it does not consider that, under Windows, it could very well be escript (just as much as escript.exe).  If the invocation line is "escript the_scrip_file.erl arguments", then escript thinks the argv[0] is the name of the script (instead of escript executable) and appends ".escript" to it.</div>

<div><br></div><div>One way to solve this problem under Windows, from what I can tell so far, would be to check for escript.exe as well as escript under Windows, as the following patch to escript does (from the R14B03 source taken at <a href="http://erlang.org/" target="_blank">erlang.org</a>):</div>

<div><br></div><div><br></div><div>@@ -377,7 +377,8 @@</div><div>     last_opt = argv;</div><div> </div><div> #ifdef __WIN32__</div><div>-    if (_stricmp(basename, "escript.exe") == 0) {</div><div>+    if ( (_stricmp(basename, "escript.exe") == 0)</div>

<div>+       ||(_stricmp(basename, "escript") == 0)) {</div><div> #else</div><div>     if (strcmp(basename, "escript") == 0) {</div><div> #endif</div><div><br></div><div><br></div><div>I have not yet tested that patch (I am still downloading Cygwin's development package to be able to build Erlang from source on the Windows box).</div>

<div><br></div><div>If I get it working, should I (and where should I) submit a patch to escript.c?</div><div><br></div><div>Also, is there a bug tracker for Erlang where one can browse through bug reports, submit one and identify patches or is everything done through the mailing lists?  I did not see links to a bug tracker in the <a href="http://erlang.org/" target="_blank">erlang.org</a> site except for a mention about submitting patches via github.</div>

<div><br></div><div>And finally, is there a documented process for development?</div><div><br></div><div>Thanks</div><div><br></div><div>-- Pierre Rouleau</div></div></div>
_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br></div></div></blockquote></div><br></div>