[gmpi] Re: lost-n-found

Ron posted something on vst-plugins today which he and I agree leads
to a new potential GMPI issue: the format of serialized data.

Many hosts and plugins use functions like atod, strtod, sscanf and
C++'s various functions to convert serialized data from strings into
numerical representations. Similarly, functions such as printf,
sprintf and C++'s "<<" operators are used to convert in the opposite
direction. 

However, these functions are often locale-sensitive, which means the
use of such functions ends up generating string data that is not
portable between locales. The canonical example is the European use of
the command character as the decimal indicator versus the
Anglo-American use of the period character for the same purpose.

If plugin state is serialized in string format, GMPI will need to do
one or more of the following (or other solutions):

   a) specify a locale for generating and interpreting these strings
   b) provide conversion functions that are locale insensitive

--p

----------------------------------------------------------------------
Generalized Music Plugin Interface (GMPI) public discussion list
Participation in this list is contingent upon your abiding by the
following rules:  Please stay on topic.  You are responsible for your own
words.  Please respect your fellow subscribers.  Please do not
redistribute anyone else's words without their permission.

Archive: http://www.freelists.org/archives/gmpi
Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe

Other related posts: