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

2009-02-06 Thread Ross Finlayson
I tested this with another compiler, and got the same result as Steven - the "Locale" destructor was getting called immediately after the constructor, rather than at the end of the block. I still think that this is a compiler bug, but because it appears to be common, I've decided to change all

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

2009-02-06 Thread Steven Kramer
Op 6 feb 2009, om 11:14 heeft Ross Finlayson het volgende geschreven: 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. In that case, the 'bug' is probably i

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

2009-02-06 Thread Ross Finlayson
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. In that case, the 'bug' is probably in your compiler, not our code. Is anyone else ancountering this problem? -

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

2009-02-06 Thread Steven Kramer
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)