[Live-devel] Locale bug in RTSP range: header

Steven Kramer skramer at inbeeld.eu
Fri Feb 6 02:04:33 PST 2009



Hi,

my system is apparently not using a US locale. This affected the  
generated range string (replaced dots by comma's). Fixed this by  
explicitly scoping the locale with a local variable.
I.e., in createRangeString I replaced

Locale ("C", LC_NUMERIC);

with

Locale locale ("C", LC_NUMERIC);


That might generate 'unused' warnings in other compilers, though. I'm  
using gcc version 4.0.1 (Apple Inc. build 5488)

Thanks


Steven Kramer



More information about the live-devel mailing list