[chuck-users] Float assignment totally unexpected

Spencer Salazar spencer at ccrma.stanford.edu
Wed Mar 26 17:41:31 EDT 2014


Cool. Ill make a fix for the next release that automatically sets this (for
miniAudicle only), but it looks like you have a workaround for now.

spencer



On Wed, Mar 26, 2014 at 1:26 PM, alfredo <freddi.blues at gmail.com> wrote:

> Hi spencer/all...
>
> finally! it seems that is a locale problem.
> doing export LC_ALL="C" before running miniaudicle it works perfectly.
>
> thanks a lot...
> hope it helps to fix that.
>
> thanks to everybody for the quick answer.
>
> still congratulations for the excellent language/software that personally
> i love.
>
> sincerely,
> alfredo
>
>
> 2014-03-26 21:15 GMT+01:00 Spencer Salazar <spencer at ccrma.stanford.edu>:
>
> Hey Alfredo/all,
>>
>> I dont have any specific recollection of this issue coming up, but the
>> thread Antanas has linked to is promising. It could be a locale issue,
>> which sadly seems to still be an issue in some situations :( One side
>> effect of these is software being confused whether , or . is the decimal
>> separator for floating point literals, which might explain the
>> misrepresentations you are seeing.
>>
>> To test this, try setting to miniAudicle to the "C" locale before running
>> it, by setting the appropriate locale environment variable. Its been a
>> while, but I believe LC_ALL is the right var. For example,
>>
>> $ export LC_ALL="C"
>> $ miniAudicle
>>
>> and then proceed as normal. (The locale settings will only apply to the
>> current terminal, so this shouldnt affect anything else on your system.)
>> There are a few more locale-oriented settings that can be manipulated, so
>> some experimentation may be necessary.
>>
>> If it is a locale issue, then its probably something we can fix in
>> miniAudicle very easily. Let me know!
>>
>> Thanks,
>> spencer
>>
>>
>>
>> On Wed, Mar 26, 2014 at 12:50 PM, Antanas Budriūnas <antanasb at gmail.com>wrote:
>>
>>> 2014-03-26 21:23 GMT+02:00 alfredo <freddi.blues at gmail.com>:
>>> > chuck --version
>>> >
>>> > chuck version: 1.3.3.0 (chimera)
>>> >    linux (alsa) : 64-bit
>>> >    http://chuck.cs.princeton.edu/
>>> >    http://chuck.stanford.edu/
>>> >
>>> > nano float-issue.ck
>>> > 2.3 => float a;
>>> > <<< a >>>;
>>> >
>>> > chuck float-issue.ck
>>> > 2.300000 : (float)
>>> >
>>> > unbelievable... but mini-audicle still doesn't work
>>> >
>>> > can it be the dependencies?
>>>
>>> I didn' t use mini but seems (s)hi had the problem long time ago  -
>>>
>>> https://lists.cs.princeton.edu/pipermail/chuck-users/2006-November/001309.html
>>>
>>>
>>> Antanas Budriūnas
>>> _______________________________________________
>>> chuck-users mailing list
>>> chuck-users at lists.cs.princeton.edu
>>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>>>
>>>
>>
>> _______________________________________________
>> chuck-users mailing list
>> chuck-users at lists.cs.princeton.edu
>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>>
>>
>
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20140326/a7215a68/attachment.html>


More information about the chuck-users mailing list