mrw wrote:
> C++ -strtod- is doing the conversion, in a locale dependent manner:
> http://www.cplusplus.com/reference/cstdlib/strtod/
>
I scanned it as string to double - never throught about locale slant for
double - I was thinking of date formats.
In terms of handling locale env variables - this is what main line does
Code:
--------------------
ifdef _WIN32
{
const char *var;
var = getenv("LC_ALL");
if (!var)
var = getenv("LC_NUMERIC");
if (!var)
var = getenv("LANG");
if (!var || strcmp(var, "C") != 0)
setlocale(LC_ALL, "");
}
#else
setlocale(LC_ALL, "");
#endif
--------------------
There is some attempt to be locale independent.
------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=110871
_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter