The VLC developers have pointed out that the system "setlocale()" function that 
we used to implement our "Locale" class might not be 'thread safe' in all 
systems.  They suggested using the more modern 'xlocale.h' functions 
"newlocale()"/"uselocale()" instead.

I've installed a new version (2011.11.27) of the "LIVE555 Streaming Media" code 
that changes the implementation of "Locale" accordingly.

Unfortunately, though, things are not quite that simple, because some systems 
do not support the new 'xlocale.h' functions.  For those systems, I needed to 
keep around an #ifdef'd version of the old implementation.

One such system is FreeBSD.  To support this, I had to add a new compile-time 
definition
        -DXLOCALE_NOT_USED=1
to the "config.freebsd" file.

Also, because at least some Windows versions don't support the new 'xlocale.h' 
functions, Windows, by default, will continue to use the old implementation.  
If, however, you're sure that your own Windows version supports the new 
functions, you can instead get the new implementation by defining
        XLOCALE_USED
at compile time.

Some of you may find that some other systems out there also do not support the 
new 'xlocale' functions (i.e., they don't have the "xlocale.h" header file).  
If you find such a system, then please let us know ASAP, so we can update their 
"config." files also.

(A note to the VLC developers: The first three of your 'LIVE555 patches' have 
now been taken care of.  Two more to go!)

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to