bpa wrote: 
> 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
> 

C++ -strtod- is doing the conversion, in a locale dependent manner:
http://www.cplusplus.com/reference/cstdlib/strtod/

The -strspn(s, "1234567890.,")- bit is just getting/checking that the
string contains only those characters.

It's a pity they couldn't have just done a locale agnostic conversion !

Not too difficult to do, just split on either ',' or '.' but not both,
and calculate integer and fractional parts separately.


------------------------------------------------------------------------
mrw's Profile: http://forums.slimdevices.com/member.php?userid=38299
View this thread: http://forums.slimdevices.com/showthread.php?t=110871

_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to