On Fri, Oct 8, 2010 at 10:28 AM, Antoine Pitrou <span dir="ltr">&lt;<a href="mailto:solipsis@pitrou.net">solipsis@pitrou.net</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On Fri, 8 Oct 2010 10:02:59 -0700<br>
Stephen Hansen &lt;<a href="mailto:me%2Bpython@ixokai.io">me+python@ixokai.io</a>&gt; wrote:<br>
&gt;<br>
&gt; And long story short, it gets to 201 and runs test_cmd_line in the same<br>
&gt; order as the buildbot did, and it succeeds too, and I curse the gods of the<br>
&gt; netherworld, and am stumped with how to proceed. Two separate buildbot runs<br>
&gt; and this same failure happened, yet for me, no. Or I&#39;m doing something<br>
&gt; differently then the buildbot is, and I can&#39;t see what.<br>
<br>
</div>The buildbot user probably has different locale settings. I can<br>
simulate the failure with:<br></blockquote><div><br></div><div>I&#39;d find that very surprising: the buildslave is running as the same user I am running the test under, and the LANG is en_US.UTF-8 -- the default. Granted, the slave&#39;s running under launchd, and so is launching twisted with the tac directly -- but I can&#39;t see any part of that process which would cause the default LANG to change.</div>

<div><br></div><div>Interestingly enough, I can&#39;t reproduce the failure with:</div><div><br></div><div><div>  Top-2:build pythonbuildbot$ PYTHONFSENCODING=latin1 ./python.exe -m test.regrtest -uall test_cmd_line.py</div>

<div>  [1/1] test_cmd_line</div><div>  1 test OK.</div><div>  [84024 refs]</div><div><br></div><div>(and just to test--)</div><div><br></div><div>  Top-2:build pythonbuildbot$ PYTHONFSENCODING=&quot;utf-8&quot; ./python.exe -m test.regrtest -uall test_cmd_line.py</div>

<div>  [1/1] test_cmd_line</div><div>  1 test OK.</div><div>  [84024 refs]</div></div><div><br></div><div>But I don&#39;t think that environment variable does anything on the Mac; I&#39;m pretty sure the fs encoding is set as utf-8 and mandated as such in the OS.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">You should therefore see what the locale settings of the buildbot are<br>
(the LANG and LC_* environment variables). Of course, the test is also<br>
buggy so you should open an issue on the tracker.<br></blockquote><div><br></div><div>I&#39;m just not sure what to say about it or in what way its being buggy yet, so can&#39;t open an issue :)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

(and the fact that the test doesn&#39;t print the actual error message of<br>
the spawned interpreter is unhelpful)<br></blockquote><div><br></div><div>Agreed.</div><div><br></div><div>--S</div></div>