[Live-devel] New LIVE555 version - changes the implementation of "Locale"

Ross Finlayson finlayson at live555.com
Sat Nov 26 19:50:32 PST 2011


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/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20111126/59f0b130/attachment.html>


More information about the live-devel mailing list