[ 
http://dev.sourcefabric.org/browse/LS-1?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16071#action_16071
 ] 

Romain Beauxis commented on LS-1:
---------------------------------

(Yey, commenting on issue number 1!)

Just an FWY: this issue appears everytime the locale is changed within the C 
code by any code, including external libraries..
This has been detailed there:
  
http://caml.inria.fr/pub/ml-archives/caml-list/2004/06/87c42a77f89ceb4fb2d5544bd6d6c06c.en.html

The problem used to be caused in particular by Camomile but has been fixed 
after version 0.5.

However, we still experience it with liquidsoap nowadays, in particular when 
using floats in telnet commands and also when loading bytecode dynamic modules.

I have juste commited a rather radical fix in the plugins branch, that forces 
envirvonement variables LANG and LC_ALL to "C" and then resets the locale. This 
should be enough for a while I hope..

> Error in operators that expect floats
> -------------------------------------
>
>                 Key: LS-1
>                 URL: http://dev.sourcefabric.org/browse/LS-1
>             Project: Liquidsoap
>          Issue Type: Bug
>          Components: Liquidsoap
>            Priority: Trivial
>
> {{{
> While trying using operators that expect 
> floats as
> parameters, like "change volume" and "delay", I get the
> following message:
> liquidsoap -c /etc/liquidsoap/primo.liq
> Line 42, char 22 before "1.2": Unknown error
> Fatal error: exception Failure("float_of_string")
> here, line 42 is:
>      change_volume(1.2,foo)
> When changed to only "foo", it works. Same issue with
> "delay(5.0,foo)" for instance.
> }}}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://dev.sourcefabric.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Savonet-devl mailing list
Savonet-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-devl

Répondre à