Csound Csound-dev Csound-tekno Search About

[Cs-dev] call to strtod() in Csound engine

Date2007-10-05 10:36
FromVictor Lazzarini
Subject[Cs-dev] call to strtod() in Csound engine
it looks like the way otran.c calls strtod() to check
numeric values is buggy, because it assumes a
certain locale and if the default encoding is changed
from ascii, say to UTF-8, then the parsing fails,

Some solutions were offered, one is to reimplement it using
the dietlibc code. What do you think?

Victor
Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-10-05 16:34
From"Steven Yi"
SubjectRe: [Cs-dev] call to strtod() in Csound engine
AttachmentsNone  

Date2007-10-05 16:48
FromAnthony Kozar
SubjectRe: [Cs-dev] call to strtod() in Csound engine
Reimplementing sounds fine to me.  I would want to avoid the other option of
using a library function that is not ANSI C.

If there is a getlocale() in addition to setlocale(), then the setting could
be changed and then restored.  But that could involve a lot of calls to
these functions I suppose, which may not be desirable.
 
Anthony

Victor Lazzarini wrote on 10/5/07 5:36 AM:

> Some solutions were offered, one is to reimplement it using
> the dietlibc code. What do you think?


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net