Is this 3165, which was fixed? or maybe 3167?<br><br>Kim<br><br><br><div><span class="gmail_quote">On 10/4/07, <b class="gmail_sendername">Jean Piché</b> <<a href="mailto:jean@piche.com">jean@piche.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="">
<div><br></div><div><br></div><div>Victor,</div><div><br></div><div>This seriously look slike a bug we had about a month ago in TamTam. I cannot recall the number but hopefully someone else can remeber.</div><div><br></div>
<div>It has to do with the LOCALE env variable and the int/float separating character. It was fixed in our pythin code but specifying:</div><div><br></div><div><div style="margin: 0px;"><font style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;" face="Helvetica" size="3">
locale.setlocale(locale.LC_NUMERIC, 'C')</font></div> </div><div><br></div><br><div> <span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; 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;">
<div><br>_________________________________</div><div><a href="http://jeanpiche.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://jeanpiche.com</a></div></span> </div><div><span class="e" id="q_1156c9a52098de93_1">
<br><div><div>On 4-Oct-07, at 9:49 AM, Victor Lazzarini wrote:</div><br><blockquote type="cite"><div style="margin: 0px;">Yes setting LANG=C at the console solves the problem. Would</div><div style="margin: 0px;">you care to explain why?
</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">Victor</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">At 13:15 04/10/2007, Marco Pesenti Gritti wrote:
</div> <blockquote type="cite"><div style="margin: 0px;">On 10/4/07, Victor Lazzarini <<a href="mailto:Victor.Lazzarini@nuim.ie" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Victor.Lazzarini@nuim.ie
</a>> wrote:</div> <blockquote type="cite"><div style="margin: 0px;">(OLPC build 602)</div><div style="margin: 0px;">I have been trying a few things here and I stumbled</div><div style="margin: 0px;">across a funny problem (this is quite specialised, so
</div><div style="margin: 0px;">I suppose only a few of you would know):</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">1. With Python, if I do</div><div style="margin: 0px; min-height: 14px;">
<br></div><div style="margin: 0px;">import gtk</div><div style="margin: 0px;">import csnd</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">cs = csnd.Csound()</div><div style="margin: 0px;">
cs.Compile("myexample.csd")</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">the csound compilation will fail with very unusual</div><div style="margin: 0px;">syntax errors (which are not syntax errors at all)
</div><div style="margin: 0px;">(eg: "error: numeric syntax "11.1", line ...")</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">2. If I don't do</div><div style="margin: 0px; min-height: 14px;">
<br></div><div style="margin: 0px;">import gtk</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">Csound will happily compile my code.</div><div style="margin: 0px; min-height: 14px;"><br>
</div><div style="margin: 0px;">Now this seems so weird that I can't understand</div><div style="margin: 0px;">why it is happening.</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">
Any clues why "import gtk" is causing this</div><div style="margin: 0px;">behaviour?</div> </blockquote><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">Does running it with LANG=C help?
</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">Marco</div> </blockquote><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">Victor Lazzarini</div><div style="margin: 0px;">
Music Technology Laboratory</div><div style="margin: 0px;">Music Department</div><div style="margin: 0px;">National University of Ireland, Maynooth</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">
_______________________________________________</div><div style="margin: 0px;">Devel mailing list</div><div style="margin: 0px;"><a href="mailto:Devel@lists.laptop.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Devel@lists.laptop.org</a></div><div style="margin: 0px;"><a href="http://lists.laptop.org/listinfo/devel" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.laptop.org/listinfo/devel</a></div>
</blockquote></div><br></span></div></div><br>_______________________________________________<br>Devel mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Devel@lists.laptop.org">Devel@lists.laptop.org
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.laptop.org/listinfo/devel" target="_blank">http://lists.laptop.org/listinfo/devel</a><br><br></blockquote></div><br>