Looking through flac code - the parsing of skip & until time does not
seem to have a locale dependency - the fractional part can be either a
comma or a dot.
So it is not clear what effect mrw has found with LOCALE
Code:
--------------------
static FLAC__bool local__parse_timecode_(const char *s, double *value)
{
double ret;
uint32_t i;
char c, *endptr;
/* parse [0-9][0-9]*: */
c = *s++;
if(c >= '0' && c <= '9')
i = (c - '0');
else
return false;
while(':' != (c = *s++)) {
if(c >= '0' && c <= '9')
i = i * 10 + (c - '0');
else
return false;
}
ret = (double)i * 60.;
/* parse [0-9]*[.,]?[0-9]* i.e. a sign-less rational number (. or , OK
for fractional seconds, to support different locales) */
if(strspn(s, "1234567890.,") != strlen(s))
return false;
ret += strtod(s, &endptr);
if (endptr == s || *endptr)
return false;
*value = ret;
return true;
}
--------------------
------------------------------------------------------------------------
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